git每次提交都输入密码

打开gitbash执行即可

git config --global credential.helper store

长期储存密码,因为git默认是不储存密码的,不执行这条命令的话每次更新代码,或者提交代码都需要输入密码

 

执行上面的命令会在.gitconfig 文件中添加如下内容, 所以也可以直接编辑.gitconfig文件添加以下内容

[credential]    
    helper = store
posted @ 2018-02-24 17:50  .追风逐月  阅读(362)  评论(0)    收藏  举报