Ubuntu 下每次 git pull 时需要输入账号密码解决方法

  • 1.执行 git config --global credential.helper store
  • 2.再执行 git pull
    1. 输入账号密码

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

Just a picture.png

然后查看 ~/.git-credentials 可查看自己的账号密码,形式是: https://domain:password@username

原文链接

你可能感兴趣的:(Ubuntu 下每次 git pull 时需要输入账号密码解决方法)