美文网首页
解决git每次提交代码都要输入帐号密码

解决git每次提交代码都要输入帐号密码

作者: 王侦 | 来源:发表于2022-10-20 09:15 被阅读0次

step1.在Git.bash文件中输入命令:

git config --global credential.helper store

step2.然后你会发现你的C:\Users\用户名.gitconfig 文件会多出以下代码:

[credential]
    helper = store**

step3.紧接着,使用git pull或者git push 命令,根据提示输入帐号和密码。这时你的本地生成一个类似C:\Users\用户名.git-credentials文件,用于记录帐号密码。

https://帐号:密码@gitee.com

step4.完成以上几步,下次就不用再次输帐号密码了。

相关文章

网友评论

      本文标题:解决git每次提交代码都要输入帐号密码

      本文链接:https://www.haomeiwen.com/subject/nbtuzrtx.html