Sourcetree远程:无效的用户名或密码 [英] Sourcetree remote: Invalid username or password

查看:1271
本文介绍了Sourcetree远程:无效的用户名或密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用sourcetree推送到github,但出现以下错误:

Im trying to push to github with sourcetree but get the following error:

git -c diff.mnemonicprefix = false -c core.quotepath = false push -v --tags origin live_version:live_version远程:无效的用户名或密码.严重的:身份验证失败 ' https://github.com/myname/myrepo/' https://github.com/myname/myrepo

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin live_version:live_version remote: Invalid username or password. fatal: Authentication failed for 'https://github.com/myname/myrepo/' Pushing to https://github.com/myname/myrepo

已完成错误,请参见上文.

Completed with errors, see above.

但是当我去

工具>身份验证>我的github帐户

tools > authentication > my github account

然后单击编辑">刷新oauth令牌" 一个页面打开,我得到:

And click edit > refresh oauth token A page opens and I get:

身份验证成功

SourceTree has been successfully authenticated. You may now close this page.

它总是有效,但是突然停止了,我没有两因素验证. 我尝试删除该帐户,然后再次添加却无济于事. 如何使连接重新工作,以便将项目推送到github.

It always worked but it suddenly stopped, i do not have two factor authentication. I tried deleting the account and adding it again to no avail. How can I get the connection working again so that I can push my project to github.

Sourcetree版本2.1.8.0

推荐答案

我在此处,这是版本2.1.8+的已知错误

I found the answer here, it is a known bug for version 2.1.8+

以下步骤为我修复了此问题:

The following steps fixed it for me:

Tools > Options > Git > Update Embedded Git

也可以使用命令行进行推送.

Also pushing with the command line works.

编辑

还添加了@Latisha的答案:

Also adding @Latisha's answer:

1. Do the above.
2. Close Sourcetree
3. Delete AppData\Local\Atlassian\SourceTree\passwd 
4. Restart SourceTree
5. Hurray!!!

这篇关于Sourcetree远程:无效的用户名或密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆