解决git pull 每一次都需要输入密码的问题

方法1:

当我们配置好我们的git以后呢,我们可以在配置文件~/.gitconfig~/.config/git/config 文件里加入这么两行:

[credential]
           helper = store

这样的话,git就会帮助我们记住密码了;

方法2:

当然也可以直接通过命令进行配置,如下:

git config --global credential.helper store

(*******       补充:方法二 的命令很好理解,与配置用用户信息的格式相似的:

$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com
$ git config --global core.editor emacs
 
配置完以后,配置文件的内容如下:
1 [user]                                                                                                                         
  2         name = Johe Doe
  3         email = johndoe@example.com
  4 [core]
  5         editor = emacs
  6 [credential]
  7         helper = store
                        ********)
原文地址:https://www.cnblogs.com/yinheyi/p/7249130.html