解决git每次提交拉取代码都要输入帐号密码
·
- 首先,在Git.bash文件中输入命令:
git config --global credential.helper store
- 然后你会发现你的C:\Users\用户名xx.gitconfig**文件会多出以下代码:
[credential]
helper = store**
- 紧接着,使用
git pull或者git push命令,根据提示输入帐号和密码。这时你的本地生成一个类似C:\Users\用户名xx.git-credentials文件,用于记录帐号密码。
https://帐号:密码@gitee.com
- 完成以上几步,下次就不用再次输帐号密码了。
更多推荐
所有评论(0)