- 1.执行 git config --global credential.helper store
- 2.再执行 git pull
- 输入账号密码
流程执行完毕后下次在输入git pull时就不用输入账号密码了。
此时查看~/.gitconfig 文件会看到如下图所示的字样
[credential] helper = store
Just a picture.png
然后查看 ~/.git-credentials 可查看自己的账号密码,形式是: https://domain:password@username