git——解决“fatal: Authentication failed for 'https://github.com/balabala”

  平复一下心情,到底如何在github上将队友和owner的仓库连接?如何push代码到远程仓库???找了巨多教程,终于解决了~

  刚到公司不久,开始学着用git,在提交代码的时候怎么都提不上去!

解决办法:

  1.owner需要在github上创建一个组织:Create an organization,在这里邀请成员

  2.在该组织下创建一个team,然后邀请你的团队成员

  3.新建一个repository

  4.队友需要在自己的电脑里生成一个ssh key。关于如何生成ssh key : https://blog.csdn.net/lengyu6220/article/details/78959137

  这时要注意,队友自己不要新建ssh key 去保存这个公钥,而是要将公钥(id_rsa.pub)里的内容拷出来给owner,让owner来新建一个ssh key来保存

  具体我是参考这个教程:https://blog.csdn.net/dengdengda/article/details/50903176。如果你到这里已经可以成功了就不用往下看了 。

  5.到这里我发现我的git开了双重认证,这时候,看这个教程:https://www.cnblogs.com/Security-Darren/p/4106478.html要创建一个个人访问令牌!,在push的时候密码是要复制粘贴这个令牌的,而不是自己的git密码!(?﹏?)

  

git创建分支并上传代码的教程:

  https://blog.csdn.net/qq_20989105/article/details/77119885

  

git——解决“fatal: Authentication failed for 'https://github.com/balabala”

原文地址:https://www.cnblogs.com/gaoquanquan/p/9505091.html

时间: 2024-08-18 10:51:26

git——解决“fatal: Authentication failed for 'https://github.com/balabala”的相关文章

Github错误:fatal: Authentication failed for 'https://github.com/ ...

GitHub push代码发生错误:fatal: Authentication failed for 'https://github.com/ ... 使用的https提交,在用SourceTree提交代码时候发生错误,返回的错误提示说: fatal: Authentication failed for 'https://github.com/ ... 如图所示: 解决方案,重新执行git config命令配置用户名和邮箱即可: git config -–global user.name "xx

Git push “fatal: Authentication failed ”

Git push "fatal: Authentication failed " 问题原因 之前设置了两步验证 If you enabled two-factor authentication in your Github account you won't be able to push via HTTPS using your accounts password. Instead you need to generate a personal access token. This

解决$ git clone fatal: Authentication failed

今天在使用git clone克隆项目的时候报如下错误: $ git clone XXXXXX Cloning into 'XXXX'... fatal: Authentication failed for 'XXXXXX' 在网上查找了一番,也使用如下命令进行了设置: git config --global user.name git config --global user.email 同时也清除了windows凭证管理器中记录的凭证,仍然不行,最后使用了如下命令解决: git config

git中fatal: Authentication failed for 的问题

从公司的Git服务器上pull代码,然后怎么操作都报"fatal: Authentication failed for"的错误,重新打开,电脑重启都没有解决,搞得超级郁闷.后来在一个blog中找到了解决方法.看到错误知道是验证失败,而且通过idea的客户端获取程序没有问题,但是在vs code的终端中获取,就是一直包这个错误.找了好久,也没看到那里可以修改凭证的.看到很多修改配置文件的,试了也不行.后来看到一篇文章里看到Windows中git的凭证存在Wind系统的中,在凭据管理器中可

解决:fatal: authentication failed for https

最近使用微软的 VSTS www.visualstudio.com 代码托管后,在linux 环境拉取代码总是验证不成功. 解决办法: Use Git Credential Managers to Authenticate to VSTS 2018/03/14 2 分钟阅读时长 VSTS | TFS 2018 | TFS 2017 | TFS 2015 | VS 2017 | VS 2015 Git Credential Managers simplify authentication with

fatal: Authentication failed for又不弹出用户名和密码 解决办法

各位,如果能弹出来,一定是你账号密码搞错了,就别继续看了. image.png 切换命令行: image.png 依然报错, 说到这个问题,又可以长篇大论了, 我使用的是tortoisegit,window电脑 平常都是用ppk文件组合 _netrc文件进行登录的,这样设置之后基本上只需要输入密码,不再需要输入用户名就可以上传更新,要节省不少时间 _netrc文件可以自己搜索在C:\Users\Administrator\%username%\_netr下 内容如下: machine git.o

git [command line] fatal: Authentication failed for

fatal: Authentication failed for https://www.jianshu.com/p/8a7f257e07b8 git.exe fetch -v --progress "origin" 解决方法如下: git config --system --unset credential.helper 终于解决“Git Windows客户端保存用户名与密码”的问题 - dudu - 博客园http://www.cnblogs.com/dudu/archive/20

Git在提交代码时出现的fatal: Authentication failed的问题

git push origin master remote: Incorrect username or password ( access token ) fatal: Authentication failed for 'https://gitee.com/xxxxxx/xxxxxxxxx.git/' 修改为正确的用户名与密码即可 原文地址:https://www.cnblogs.com/gispathfinder/p/11022332.html

fatal: Authentication failed (二)

一.前言 前面一段时间写了一篇解决 git 上传代码出现的权限验证问题,还是没有很好的解决.现在还了方式,具体步骤如下: 二.操作流程 我们在上传代码到服务器,我们都需要安装 Git 版本控制.在安装的时候,建议大就都勾选 Git Bash 这个工具,便于我们直接使用上传和克隆代码.那么我们怎么解决这个 fatal: Authentication failed 呢?首先我们找到 Git Bash ,使用 “以管理员身份运行” 使用 Git 命令进入到你项目所在的文件夹下,在该路径下输入: git