git pull/push时免设置提示输入账号密码方法
1、先cd到根目录,执行git config --global credential.helper store命令
git config --global credential.helper store
2、执行之后会在家目录的.gitconfig文件中增加如下配置
[credential]
helper = store
3、之后cd到项目目录,执行git pull命令,会提示输入账号密码。输完这一次以后就不再需要,并且会在根目录
生成一个.git-credentials文件
4、之后pull/push代码都不再需要输入账号密码了~文章来源:https://www.toymoban.com/news/detail-802617.html
参考链接文章来源地址https://www.toymoban.com/news/detail-802617.html
到了这里,关于git pull/push时免设置提示输入账号密码方法的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!