TFS 2012 Unshelve to different branch -> An item with the same key has already been added

后端 未结 4 1396
误落风尘
误落风尘 2020-12-19 02:44

I need help resolving the following issue:

I am attempting to unshelve code from the source branch onto a target branch.

I am using the following:

4条回答
  •  误落风尘
    2020-12-19 03:18

    I had the same issue and fixed it when I re-shelved the changeset from the source branch but chose not to preserve pending changes locally. After this the migration of the new shelveset ran smoothly.

    (I also made sure I'd followed the below steps collected from other answers on this site)

    • Use a workspace that encompasses both source and target branches
    • Run the command from the folder mapped to the source branch
    • Check for quotes around any paths containing spaces
    • Deleting the cache in C:\Users[USERNAME]\AppData\Local\Microsoft\Team Foundation\4.0\Cache and restarting Visual Studio

提交回复
热议问题