git 保存用户名和密码

场景:设置完用户名和密码,push  代码时还提示输入用户名和密码

首先 git 执行了以下命令:

git config --global user.name ‘xxxx’

git config --global user.password ‘xxxx’

但是提交代码时还需要输入用户名和密码

需要再执行以下命令即可:

git config --global credential.helper store

git config credential.helper store

posted @ 2022-09-13 17:49  Freya~  阅读(113)  评论(0编辑  收藏  举报