【问题标题】:git-flow is giving error: An item with the same key has already been addedgit-flow 给出错误:已添加具有相同密钥的项目
【发布时间】:2018-11-05 18:56:53
【问题描述】:

我正在通过源代码树运行 git-flow 进程,试图完成我的分支。我收到此错误:

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.

奇怪的是,这发生在两个不同的 repo 上。

有什么建议吗?

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

【问题讨论】:

    标签: git atlassian-sourcetree git-flow git-extensions


    【解决方案1】:

    【讨论】:

    • 升级 Git Credential Manager 为我解决了这个问题
    【解决方案2】:

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

    git config --global --unset credential.helper

    谢谢。

    【讨论】:

      猜你喜欢
      • 2017-01-02
      • 1970-01-01
      • 2017-08-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-01-27
      相关资源
      最近更新 更多