【Git】push的时候不用频繁输入密码

版权声明:本文为博主原创文章,转载时附上原文链接即可 https://blog.csdn.net/weixin_38705903/article/details/88618018

git bash进入你的项目目录,输入:

git config --global credential.helper store

检查是否成功,在项目目录下输入

vim ~/.gitconfig 

看最后一行有没有下面一段话,如果没有的话手动加上然后保存:

[credential]
	helper = store

然后push,输入一次邮箱和密码,之后下一次就再也不用输入了

参考:
解决ubuntu 每次提交git 都需要密码的方法
Ubuntu下解决Git保存用户名和密码的方法

猜你喜欢

转载自blog.csdn.net/weixin_38705903/article/details/88618018