dev:dev fatal: HttpRequestException encountered. remote: Invalid username or password. fatal: Authen

匿名 (未验证) 提交于 2019-12-03 00:37:01

描述:

使用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)。具体步骤:

  1. Update the embedded git
  2. Restart SourceTree
    详见:https://stackoverflow.com/questions/45622960/sourcetree-remote-invalid-username-or-password
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!