- 1.执行 git config –global credential.helper store
- 2.再执行 git pull
-
- 输入账号密码
流程执行完毕后下次在输入git pull时就不用输入账号密码了。
此时查看~/.gitconfig 文件会看到如下图所示的字样
[credential] helper = store

然后查看 ~/.git-credentials 可查看自己的账号密码,形式是: https://domain:password@username
原文链接
© 版权声明
文章版权归作者所有,未经允许请勿转载。
相关文章
暂无评论...