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 "xxx"   git config –-global user.email "xxx@xxx.com"

二、解决二

遇到问题:push的时候出现fatal: Authentication failed for 'https://git.oschina.net/andthink/zsxw_android.git/'问题。

我第一反应是去看我的配置,我检查了我的账户配置,重新设置了git config --global user.name "xxx"和git config --global user.email “xxx”,并git remote add origin https://git.oschina.net/xxxx后没有任何改变。

在国内很多网站看了下都不行,就去stackoverflow上一看。原来是我设置了双因子身份认证Two-Factor Athentication。虽然我都不知道什么时候设置的。
解决办法:

    git remote -v git remote remove origin git remote add origin 仓库地址

最终解决方案

控制面板 凭据管理器


删除登录记录后,会重新输入账号密码

完美解决!

遇到问题:push的时候出现fatal: Authentication failed for相关推荐

  1. Git push “fatal: Authentication failed ”

    Git push "fatal: Authentication failed " 问题原因 之前设置了两步验证 If you enabled two-factor authenti ...

  2. github push 代码出现fatal: Authentication failed for ‘https://github.com/xxx/xxx.git/‘

    fatal: Authentication failed for 'https://github.com/xxx/xxx.git/': 问题描述 想从服务器上push代码到github,遇见fatal ...

  3. Git:git push 时 remote: No anonymous write access. fatal: Authentication failed for ....问题

    git push 过程中遇到: remote: No anonymous write access. fatal: Authentication failed for - 最初使用了不正确的解决办法: ...

  4. Git fatal: Authentication failed

    git使用过程中遇到的一个问题:git push 的时候出现了让我输入用户名和密码,然后就出现了fatal: Authentication failed的错误,关键是其他的项目都没有问题,就这个项目, ...

  5. github报fatal: Authentication failed解决方案(2021-08-13日之后)

    问题 在2021年8月13日后对github进行push或pull过程都出现了 fatal: Authentication failed 解决方案:创建令牌代替原始密码 原因 https://gith ...

  6. github fatal: Authentication failed for解决方法

    github fatal: Authentication failed for解决方法 问题:正确得 输入账号密码 发现也是错误. 原因: 是新版github 需要签名验证. 解决: 创建key 后 ...

  7. git操作及fatal: Authentication failed for错误解决

    1.配置用户信息 git config --global user.name [username] git config --global user.email [email] 2.查询用户信息 gi ...

  8. 解决git报错fatal: Authentication failed for ‘http://10.10.208.29/root/xmh.git/‘

    今天准备在git push代码的时候,突然报错fatal: Authentication failed for 'http://10.10.208.29/root/xmh.git/' 然后尝试了git ...

  9. fatal: Authentication failed for解决方法

    背景 在执行git pull origin master的时候报错: fatal: Authentication failed for 'https://gitxxx.com/xxx.git' 解决办 ...

最新文章

  1. python -opencv 使用滑动条 cv2.createTrackbar,cv2.getTrackbarPos(), cv2.setTrackbarPos
  2. OpenFire、Spark、Smack介绍
  3. Delphi 与 DirectX 之 DelphiX(52): TDIB.DoSaturation();
  4. 为什么要用Dubbo-远程通信背景
  5. Xamarin开发笔记—百度在线语音合成
  6. hdu 1325 Is It A Tree?
  7. msmq发送速度的测试
  8. 绝地求生服务器维护6.28,绝地求生6月28号更新完怎么进不去 绝地求生更新维护到几点6.28...
  9. 最速下降法及案例分析(含MATLAB代码)
  10. LM317,LM337正负电源 电路图PCB设计
  11. EasyTalking微博系统
  12. 全基因组和外显子组测序行业调研报告 - 市场现状分析与发展前景预测
  13. vb.net设置分辨率和缩放比例_配置高不一定性能强,Win 10做好这些设置才能“6到飞起”!...
  14. Html静态页面缓存问题,解决缓存更新不及时需清空缓存更新页面
  15. 视频教程-爱上Axure之软件基础视频教程-Axure
  16. 快速学习html、css的经典笔记
  17. 聊一聊Niche站外链策略和PBN
  18. Windows Server 2012 蓝屏 Wpprecorder.sys 故障
  19. QNX Hypervisor —— 虚拟机
  20. 最新的互联网校招薪酬曝光

热门文章

  1. 61种常用JavaScript
  2. MasterPage事件使用
  3. STM32-使用函数指针时莫名复位问题原因
  4. TI-BLE协议栈的GAP
  5. 在麻省理工读计算机专业,看美国的计算机教育(转载)
  6. 《研磨设计模式》chap21 解释器模式Interpreter(1)模式介绍
  7. kubenetes中YAML的字段解释
  8. 关于报错ImportError: cannot import name ‘AbstractKeyedTuple‘ from ‘sqlalchemy.util._collections‘的解决
  9. CA/TA参数传输中tmpref,memref和Value的区别
  10. [ARM-assembly]-A64指令集合总结