git push时候总提示输入账号密码,如何免除设置?

1. 打开.ssh所在目录
  home,即C:UsersAdministrator
2. 在home中,进入git bash命令终端,创建.git-credentials文件,编辑
  touch .git-credentials
  vim .git-credentials
  https://{username}:{password}@github.com

3. 在终端下执行
  git config --global credential.helper store

4. 可以看到~/.gitconfig文件,会多了一项:
  [credential]
    helper = store

原文地址:https://www.cnblogs.com/cxying93/p/6697693.html