您如何在Theia中重置Git凭据?

问题描述 投票:1回答:1

首先,它在Linux上运行,所以请从Windows忘掉凭据管理器。

错误,我部署了一个Theia IDE Docker容器,其中保存了我自己的Git凭据,该凭据应该属于另一个用户。如何重置凭据?

我尝试从/home/theia/.git-credentials中删除它,但是没有带来任何好处,因为它仍然继续使用我的凭据。

是,我确实使用命令预先保存了我的凭据。

对我来说,这本身不是安全问题,而是不便,因为即使其他用户的推送使用更改,我的推送仍然显示我的名字

git config --global user.email "[email protected]"

git config --global user.name "[THEIA] Firstname Lastname"
git credentials theia
1个回答
1
投票

首先,它在Linux上运行,所以请从Windows忘掉凭据管理器。

嗯...还有microsoft/Git-Credential-Manager-for-Mac-and-Linux

并且,如果您在谈论与提交相关的作者,那么与凭证完全无关,仅与microsoft/Git-Credential-Manager-for-Mac-and-Linux有关。您需要更改user.name/user.email,然后强行推动。

[author of those commits first提及OP munchkin

他的凭据已过期,就像我要对此进行测试一样。我想,什么都不做就可以解决。

© www.soinside.com 2019 - 2024. All rights reserved.