当前位置:   article > 正文

linux服务器保存git账号密码命令_linux git 命令如何记住用户名和密码

linux git 命令如何记住用户名和密码

1.保存git账号密码 git config --global credential.helper store
2.查看git账号密码 cd回车 ls -a cat .git-credentials
步骤: 先输入 git config --global credential.helper store 然后进入代码目录,git pull 会提示输入git账号、密码,因为我们提前输入了git config --global credential.helper store命令,会把git账号密码保存到根目录.git-credentials文件中,下次拉取时,就不用输入git账号密码了。
注意事项:拉取代码提示报错,可能是git权限不够、git账号密码不对、或者.git-credentials有空行。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/凡人多烦事01/article/detail/632239
推荐阅读
相关标签
  

闽ICP备14008679号