SourceTree push 时密码错误提示解决方案(Invalid username/password)

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xp_lx1/article/details/85120724

 git push密码错误解决方法

配置\.git\config文件

最简单的解决方法

我最近用SourceTree push 我的code
但是总是提示出密码错误
 fatal: remote error: Invalid username/password.

两种方法:

第一种:
first method:

clone的时候,加上github用户名和密码在你clone地址上:

https://xplx:[email protected]/xplx/eos-study.git

(其中xplx:用户名,654321:用户密码,github.com/xplx/eos-study.git:项目地址。)

https://username:password@github.com/xplx/eos-study.git

第二种方法
找到\.git\config文件

把里头的
https://github.com/xplx/eos-study.git
改成:
https://username:password@github.com/xplx/eos-study.git

接下来大功告成

猜你喜欢

转载自blog.csdn.net/xp_lx1/article/details/85120724