避免每次push都输入密码

gitbash每次提交都要输密码真有点头疼,所以就:

1 创建验证文件:touch  .git-credentials(windows)

2 编辑验证文件:vim  .git-credentials

  文件内容:https://{github_username}:{passwd}@github.com

3  wq 保存

4  设置为全局配置:git  config  --global credential.helper store

5  重启git_bash,提交新内容,输入一次用户名密码后就不用再输入了

 

猜你喜欢

转载自www.cnblogs.com/wujianqinjian/p/9147767.html