Sourcetree 远程:用户名或密码无效 [英] Sourcetree remote: Invalid username or password
问题描述
我正在尝试使用 sourcetree 推送到 github,但出现以下错误:
<块引用>git -c diff.mnemonicprefix=false -c core.quotepath=false push -v--tags origin live_version:live_version remote: 无效的用户名或密码.致命:身份验证失败'但是当我去
<块引用>工具 > 身份验证 > 我的 github 帐户
然后点击编辑>刷新oauth令牌一个页面打开,我得到:
认证成功
SourceTree 已成功通过身份验证.您现在可以关闭此页面.
它一直有效,但突然停止了,我没有双重身份验证.我尝试删除该帐户并重新添加它无济于事.我怎样才能让连接重新工作,以便我可以将我的项目推送到 github.
Sourcetree 2.1.8.0 版
我在这里找到了答案,这是 2.1.8+ 版本的已知错误
以下步骤为我修复了它:
工具>选项 >git >更新嵌入式 Git
也可以使用命令行推送.
编辑
还添加@Latisha 的回答:
1.做到以上几点.2.关闭Sourcetree3.删除AppDataLocalAtlassianSourceTreepasswd4.重启SourceTree
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 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.
However when I go to
tools > authentication > my github account
And click edit > refresh oauth token A page opens and I get:
Authentication Successful
SourceTree has been successfully authenticated. You may now close this page.
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 version 2.1.8.0
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.
EDIT
Also adding @Latisha's answer:
1. Do the above.
2. Close Sourcetree
3. Delete AppDataLocalAtlassianSourceTreepasswd
4. Restart SourceTree
这篇关于Sourcetree 远程:用户名或密码无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!