gpt4 book ai didi

VS Code: Get 'Bad credentials' when using Clone Repository(VS代码:使用克隆存储库时获得“Bad credentials”)

转载 作者:bug小助手 更新时间:2023-10-28 10:49:49 43 4
gpt4 key购买 nike



I use vscode version 1.45.1. I get 'Bad credentials' when using Clone Repository. Lately I changed my username at github. That could be the reason. How do I tell vs code that?

vscode 1.45.1版本使用克隆存储库时,我收到“Bad credentials”。最近我在github上换了用户名。可能就是这个原因。我如何告诉vs code?


更多回答

Does this answer your question? Changing the git user inside Visual Studio Code

这回答了你的问题吗?在Visual Studio代码中更改Git用户

优秀答案推荐

You'll need to open up Credential Manager in Windows and delete (or edit) the Github account there:

您需要在Windows中打开凭据管理器并删除(或编辑)Github帐户:



Windows Credential Manager



You'll need to restart Visual Studio Code for it to prompt you to login to Github again.

您需要重新启动Visual Studio代码,才能提示您再次登录到Github。



Also note that you may need to revoke the OAuth connection in Github under https://github.com/settings/applications:

还要注意,您可能需要在https://github.com/settings/applications:下的Github中撤销OAuth连接



Github OAuth for VSCode



Had the same on a MacBook Pro. Signing out via the profile button (Bottom left), closing VSCODE and reopening it while trying to connect to GitHub worked for me. Hope this helps others.

在MacBook Pro上也是如此。通过个人资料按钮(左下角)注销,关闭VSCODE,然后重新打开它,同时尝试连接到GitHub,这对我来说很管用。希望这对其他人有所帮助。


更多回答

This resolved my issue, thanks!

这解决了我的问题,谢谢!

43 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com