Windows下git Bash模式下git push时候免输账号密码的解决办法

打开git bash控制终端后依次输入以下命令:

  • cd ~

  • vi .gitconfig    

打开文档后按下i键 在文件中加上如下

[credential] 
helper = store --file .git-credentials 


按下ESc键,输入:wq保存退出,再回到项目所在目录,push时再输入一次,以后就不用输入了。

猜你喜欢

转载自blog.csdn.net/weixin_38450840/article/details/80831414