描述:
使用sourcetree提交代码到GitHub时提示“dev:dev
fatal: HttpRequestException encountered.
remote: Invalid username or password.
fatal: Authentication failed for ‘https://github.”
解决方案:
1.在GitHub中创建授权token,并用其代替在sourcetree中GitHub登录弹窗的密码。
Setting—>Developer settings—>Personal access tokens—->Generatoe new token
2.在sourcetree中配置GitHub账号,刷新OAuth令牌后重新登录尝试。
3.怀疑是sourcetree版本bug,升级版本后尝试。
亲测以上三种方式均不可行,可行方案删除sourcetree密码。(AppData\Local\Atlassian\SourceTree\passwd)。具体步骤:
- Update the embedded git
- Restart SourceTree
详见:https://stackoverflow.com/questions/45622960/sourcetree-remote-invalid-username-or-password