git SourceTree(remote:invalid username or password,fatal:Authentication falied for 'https:...

git SourceTree(remote:invalid username or password,fatal:Authentication falied for 'https:..._第1张图片

在执行 push 时候,密码输入错误,重新拉去推送仍然是这个错误。

原因是 sorcetree首次执行push需要你输入密码,应该是存到某个位置,以后输入都直接取,但是我没找到在哪里修改

在sourcetree界面推送会仍然得到这个错误


如果是用命令行push ,那样密码还是会需要手动输入,这样就可以推送到origin了,这可以作为一个解决办法:)


直接git push 会有输入用户名和密码的提示,重新输入一次 就可以解决密码输入错误的问题

如果是用户名或者邮箱错误 重新配置一下

git config -–global user.name "xxx"   
git config –-global user.email "[email protected]" 


你可能感兴趣的:(C/C++,电脑杂项问题)