简体   繁体   English

有没有办法删除 Ubuntu 20.04 中 Visual Studio Code 缓存的 GitHub 密码?

[英]Is there a way to remove GitHub passwords cached by Visual Studio Code in Ubuntu 20.04?

I tried to push / pull code from a private repository which I have access to and instead I get the error below:我试图从我有权访问的私有存储库中推送/拉取代码,但出现以下错误:

remote: Repository not found.
fatal: Authentication failed for 'https://github.com/path-togit.git/'

I have searched and tried all solutions provided on different platforms, but none works.我已经搜索并尝试了在不同平台上提供的所有解决方案,但没有一个有效。 For example, deleting the vscodegithub entry in passwords and keys, but still it doesn't work.比如删除password和keys中的vscodegithub条目,还是不行。

I tried the following but they do not work in my case:我尝试了以下操作,但它们在我的情况下不起作用:

I have seen that people reporting these as successful are Windows and Mac users.我看到那些报告这些成功的人是 Windows 和 Mac 用户。 Is there a solution that works for Ubuntu?是否有适用于 Ubuntu 的解决方案?

PS: I can successfully push/pull using the normal terminal. PS:我可以使用普通终端成功推/拉。 My problem is with the Visual Studio Code terminal and my operating system is Ubuntu 20.04 (Focal Fossa).我的问题是 Visual Studio Code 终端,我的操作系统是Ubuntu 20.04 (Focal Fossa)。

我通过安装 GCM-core (https://github.com/microsoft/Git-Credential-Manager-Core/#linux ) 设法解决了这个问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM