①执行以下命令:
git config --global credential.helper store
②找到git的配置文件 .gitconfig ,添加一下内容,效果与①相同
[credential]
helper = store
原理:这个命令是在本地生成一个账号密码文件,这样就不用每次都输入了(但是还得输入一次)
这个方法对于windows,linux都是通用的!!!
如果想查看账号密码,可通过命令查看
cat ~/.git-credentials
①执行以下命令:
git config --global credential.helper store
②找到git的配置文件 .gitconfig ,添加一下内容,效果与①相同
[credential]
helper = store
原理:这个命令是在本地生成一个账号密码文件,这样就不用每次都输入了(但是还得输入一次)
这个方法对于windows,linux都是通用的!!!
如果想查看账号密码,可通过命令查看
cat ~/.git-credentials