git push密码错误解决方法
配置\.git\config文件
最简单的解决方法
我最近用SourceTree push 我的code
但是总是提示出密码错误
fatal: remote error: Invalid username/password.
两种方法:
第一种:
first method:
clone的时候,加上github用户名和密码在你clone地址上:
https://xplx:654321@github.com/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
本文详细介绍了在使用Git进行代码推送时遇到密码错误的两种有效解决方案。一种是在克隆项目时直接在URL中输入用户名和密码,另一种是修改.git/config文件中的URL,将密码信息加入其中。这两种方法均可避免在后续操作中重复输入密码。

被折叠的 条评论
为什么被折叠?



