git 清除账号密码缓存

痛定思痛。 2024-03-26 13:49 135阅读 0赞

git 清除账号密码缓存

配置用户名和邮箱:

git config —global user.name “username”
git config —global user.email “useremail@qq.com

清除配置中纪录的用户名和密码,下次提交代码时会让重新输入账号密码:

git config —system —unset credential.helper

查看git配置信息

git config —list

执行命令之后,再次pull或push时会缓存输入的用户名和密码:

git config —global credential.helper store

清除git缓存中的用户名的密码

git credential-manager uninstall

发表评论

表情:
评论列表 (有 0 条评论,135人围观)

还没有评论,来说两句吧...

相关阅读