git pull -r 没此执行都需要输入账户名和密码,会很烦
git config --global credential.helper store
输入以上指令,则可以帮助用户保存账户名和密码
cat ~/.gitconfig
文件的最后会多出以下内容
[credential]
helper = store
同时在相同目录下会存在.git-credentials 文件
cat ~/.git-credentials
里面则保存了账户名和密码
git pull -r 没此执行都需要输入账户名和密码,会很烦
git config --global credential.helper store
输入以上指令,则可以帮助用户保存账户名和密码
cat ~/.gitconfig
文件的最后会多出以下内容
[credential]
helper = store
同时在相同目录下会存在.git-credentials 文件
cat ~/.git-credentials
里面则保存了账户名和密码