我只能通过以下方式(暂时)取消我的凭据
git config credential.helper ""
这将覆盖存储选项,并且每次我被要求输入用户名密码时,但这都不是解决方案,因为我想在应用后立即存储新的凭据
git config credential.helper store
它再次存储不想要的记住的用户(Muha ****)请查看屏幕截图,我再次被卡住以推送到我的存储库,请帮助我摆脱那个记住的用户名
我现在有什么配置
我研究并遵循了以下答案中给出的几乎所有相关内容
How do I update the password for Git?
How to change my Git username in terminal?
https://askubuntu.com/questions/206449/git-config-global-file-remove-settings
但是永远无法完全忘记/替换我的旧用户(Muha ***)
删除Git凭据的最简单方法是运行如下命令,该命令将告诉您所使用的凭据助手,该密码无效,应将其删除:
$ echo url=https://[email protected] | git credential reject
您的URL必须具有正确的方案,用户名和主机,但通常不需要URL的其余部分(除非您已设置credential.useHTTPpath
)或密码。尽管已知Windows的Git凭据管理器为broken in this regard,但这在凭据帮助程序正确地说出协议的任何地方都可以使用。