Loading

Linux下git自动保存用户名和密码

最近换了系统,安装好 git 在每次代码提交的时候总是提示要重复输入用户名和密码,可以通过以下两条命令来解决这个问题。

  • 按项目设置
git config credential.helper store
  • 全局设置
git config credential.helper store --global
posted @ 2021-08-01 23:03  谢小舜  阅读(713)  评论(0)    收藏  举报