遇到问题:push的时候出现fatal: Authentication failed for 'https://git.oschina.net/andthink/zsxw_android.git/'问
2017-09-29 16:09
806 查看
GitHub push代码发生错误:fatal: Authentication failed for 'https://github.com/ ...
使用的https提交,在用SourceTree提交代码时候发生错误,返回的错误提示说:
[plain] view
plain copy
fatal: Authentication failed for 'https://github.com/ ...
如图所示:
一、解决方案,重新执行git config命令配置用户名和邮箱即可:
[plain] view
plain copy
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。虽然我都不知道什么时候设置的。
解决办法:
使用的https提交,在用SourceTree提交代码时候发生错误,返回的错误提示说:
[plain] view
plain copy
fatal: Authentication failed for 'https://github.com/ ...
如图所示:
一、解决方案,重新执行git config命令配置用户名和邮箱即可:
[plain] view
plain copy
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 仓库地址
相关文章推荐
- git之error: failed to push some refs to 'https://git.oschina.net问题解决
- (诊断)解决GitHub使用双因子身份认证“Two-Factor Athentication”后无法git push 代码的“fatal: Authentication failed for ...”错误
- 用git将代码上传码云 报错 fatal: Authentication failed for "https://...."
- repo下载android出现fatal: Unable to find remote helper for 'https'问题的方法
- git clone 的时候 fatal: Authentication failed for "http://......"
- git上传项目error: failed to push some refs to 'https://git.oschina.net/xxxxxx/aaaaaa.git'
- 在github上传项目遇到的问题(error: failed to push some refs to 'https://github.com/CrazyDony/text.git')
- 【Linux】psql: FATAL: Ident authentication failed for user "username" Error and Solution
- ADT在SDK Manager中出现问题Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list
- Failed to fetch URl https://dl-ssl.google.com/android/repository/addo Android SDK更新以及ADT更新出现问题的解决办法
- (记录学习android遇到的问题)Error:Execution failed for task ':app:packageDebug'. > Failed to create
- git push提交代码出现“One or more refs/for/ names blocks change upload”问题的解决办法
- 用git.oschina.net push的时候不用输密码的方法
- iis7 发布mvc3 遇到的HTTP错误 403.14-Forbidden Web 服务器被配置为不列出此目录的内容及Login on failed for "IIS APPPOOL\ASP.NET v4.0"问题
- 新的android sdk for eclipse开发的时候遇到的问题
- Github错误:fatal: Authentication failed for 'https://github.com/ ...