每日心得,git每次pull和push都弹窗提示输入用户密码

541 阅读1分钟

大家好,我是ttnn。

最近换了电脑,所以在维护代码仓库时修改了最新的name和email

git config --local user.username "username" git config --local user.email "email"

但是每次git pull和git push时依然弹窗提示输入用户密码 是因为没有加上用户本地凭证 git config --global credential.helper store

然后设置一下密码 git config --local user.password "password" 再次pull和push时只需要输入一次,以后就会自动验证本地用户凭证了。