配置 Git 不用每次 push 都输入密码!

如果每次 pull 或者 push 都要输入密码很浪费时间,直接执行以下的命令:

git config --global credential.helper store

然后执行一次 push 操作,输入一次密码之后,你的用户名和密码就会被保存到 ~/.git-credential 文件中,你可以在 push 后打开这个文件看看:

vim ~/.git-credential

posted @ 2020-06-16 00:04  登龙  阅读(187)  评论(0编辑  收藏  举报