如何修复 Git 凭据管理器中的重复帐户。

huangapple go评论54阅读模式
英文:

How to fix duplicate account in git credential manager

问题

git版本2.41.0.windows.2
PowerShell版本7.3.5

当我运行 git credential-manager github list 时,凭据管理器显示相同的帐户两次:

PS C:\Users\<redacted>\dev\src\cs\<redacted> git credential-manager github list
chrisxfire
chrisxfire

这导致每当我推送到仓库时出现以下提示:
如何修复 Git 凭据管理器中的重复帐户。

我可以通过运行 git credential-manager github logout chrisxfire 来移除重复的帐户。然而,只要我打开另一个仓库,重复的帐户就会再次出现。

有任何关于这个问题的想法或如何永久解决它?

英文:

git version 2.41.0.windows.2
PowerShell version 7.3.5

When I run git credential-manager github list, credential manager shows the same account twice:

PS C:\Users\<redacted>\dev\src\cs\<redacted> git credential-manager github list
chrisxfire
chrisxfire

This results in the following prompt whenever I push to the repo:
如何修复 Git 凭据管理器中的重复帐户。

I can remove the duplicate account by running git credential-manager github logout chrisxfire. However, as soon as I open another repo, the duplicate account shows up again.

Any idea what's causing this or how to fix it permanently?

答案1

得分: 2

这是一个错误。此问题中描述了一个修复方法。

https://github.com/git-ecosystem/git-credential-manager/issues/1325#issuecomment-1631642589

英文:

This is a bug. There is a fix described in this issue

https://github.com/git-ecosystem/git-credential-manager/issues/1325#issuecomment-1631642589

huangapple
  • 本文由 发表于 2023年7月18日 00:39:16
  • 转载请务必保留本文链接:https://go.coder-hub.com/76706515.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定