问题汇总:

1、首次使用sourcetree连接github上传,需要输入账号与密码(github的登录名称与密码),若此时输入错误,再次推送代码时,会要求输入密码,将出现弹框

     gitHub----【Mac】sourcetree连接github,报错:fatal:Authentication failed for'https://git…。或提示password required 解决方案

2、若此时再次输入错误,推送失败提示账户名与密码错误,无任何的弹框去设置密码

 

解决方法

一、删除保存的密钥

  进入钥匙串访问----》登录----》删掉github的账号信息

  gitHub----【Mac】sourcetree连接github,报错:fatal:Authentication failed for'https://git…。或提示password required 解决方案

 

   gitHub----【Mac】sourcetree连接github,报错:fatal:Authentication failed for'https://git…。或提示password required 解决方案

 

 

二、设置远程仓库连接

1、选择仓库设置

     gitHub----【Mac】sourcetree连接github,报错:fatal:Authentication failed for'https://git…。或提示password required 解决方案

gitHub----【Mac】sourcetree连接github,报错:fatal:Authentication failed for'https://git…。或提示password required 解决方案

 

2、选择远程仓库,选中你的仓库路径,点击编辑,或直接双击

      gitHub----【Mac】sourcetree连接github,报错:fatal:Authentication failed for'https://git…。或提示password required 解决方案

 

 3、选择你的托管类型,填好远程库的用户名,在URL路径中加入“账户名@”。然后确定。再进行推送

  gitHub----【Mac】sourcetree连接github,报错:fatal:Authentication failed for'https://git…。或提示password required 解决方案

 

 4、保存如上的设置后,进行推送代码到Github

  gitHub----【Mac】sourcetree连接github,报错:fatal:Authentication failed for'https://git…。或提示password required 解决方案

 

 

5、保存后,即可推送成功

 

相关文章:

  • 2021-04-14
  • 2022-12-23
  • 2021-08-05
  • 2021-07-20
  • 2022-12-23
  • 2021-04-24
  • 2021-11-22
猜你喜欢
  • 2021-07-22
  • 2022-12-23
  • 2021-11-13
  • 2021-09-04
  • 2021-05-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案