`

如何避免git每次提交都输入密码

 
阅读更多
vim /home/chinaestone/.git-credentials

输入内容
https://{username}:{password}@github.com

保存退出后执行下面命令
git config --global credential.helper store

执行完后
/home/chinaestone/.gitconfig 会新增一项
 helper = store
这是再执行git push/pull的时候就不会在要求你输入密码了。别问我
为什么不用ssh?没有为什么,就是不用。

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics