VSCode 在同步我的更改时第一次尝试连接时,我不小心输入了旧 github 帐户的凭据(凭据适用于旧帐户,但我想使用新帐户)。
现在我找不到更改帐户的方法。已经尝试卸载/安装,但 VSCode 一直在记住我的登录信息。
关于如何刷新给定帐户有什么想法吗?
最佳答案
git config --global --unset credential.helper
这将为您的系统取消设置 git 凭据,现在您可以使用新凭据,然后为 git 启用缓存
git config --global credential.helper wincred
git config --system credential.helper wincred
这将再次启用缓存以保存 git 密码
关于git - 在 VSCode 中更改 Git 帐户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44604446/