git-flow is giving error: An item with the same key has already been added

git-flow is giving error: An item with the same key has already been added

我是 运行 一个通过源树的 git 流程,试图完成我的分支。我收到此错误:

sh.exe "C:\Program Files\Git\usr\bin\git-flow" feature finish -k XXX
fatal: ArgumentException encountered.
   An item with the same key has already been added.

fatal: ArgumentException encountered.
   An item with the same key has already been added.

奇怪的是,这发生在两个不同的回购协议上。

有什么建议吗?

更多信息:使用 "git extensions" 我能够完成两个分支。我相信它们都是从源代码树创建的。不同的是,源代码树似乎使用 git-flow,而 git 扩展似乎使用 "git flow"

我在 sourcetree 中遇到了完全相同的错误。问题是由于 git 凭据管理器。我通过卸载 git 凭证管理器解决了这个问题。现在,sourcetree 运行完美。您可以 运行 在 cmd 中使用以下命令卸载 git 凭据管理器。

git config --global --unset credential.helper

谢谢。

The solution mentioned here worked for me. Git cred manager version had issues