ITeye博客

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

ChinaEstone · 2014-08-07 13:12 · Linux学习资料 · 开源软件 · Markdown

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?没有为什么,就是不用。

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。