git修改账号密码

git修改账号密码

方法1

清理所有的账号密码

https://blog.csdn.net/mlydaemon/article/details/105715021

#取消本地缓存用户名和密码的安全策略
git config --global credential.helper wincred
# 清除缓存的用户名和密码
git credential-manager uninstall

使用这个命令之后,以后每次使用git都要重新输入账号密码

git允许保存账号密码

https://blog.csdn.net/qq_28914007/article/details/80105299

# 设置本地存储策略为保存用户名密码,这样第一次输入后就不需要输入了
git config --global credential.helper store

# 或者
# 默认十五分钟内不需要输入
git config --global credential.helper cache

方法2:

https://blog.csdn.net/weixin_40846898/article/details/105486653

原文地址:https://www.cnblogs.com/ziyue7575/p/14925791.html