您的位置:首页 > 其它

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

2017-04-12 09:43 531 查看
1. 打开.ssh所在目录
  home,即C:\Users\Administrator
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐