0

我在 TFS2012 中使用了 git-tfs 一段时间,但最近我们迁移到 TFS2013 并且 TFS 地址发生了变化。

我似乎无法再做git tfs checkin任何事情,因为它试图将更改发送到旧地址。

我更新了 url 中的 url .git\config,清除了 TFS 缓存,但 git-tfs 仍然尝试使用旧地址签入,并tfs-remote在每次尝试执行此操作时将新的旧 url 附加到配置文件中。

我怎样才能签到新的网址?

4

1 回答 1

0

要使用新的 TFS 地址进行签入,请使用通过签入选项显式设置它的功能:

-i, --tfs-remote, --remote, --id=VALUE
                         The remote ID of the TFS to interact with
                         default: default

此外,建议通过下一个命令相应地清理 git 和 git-tfs 缓存:

git gc
git tfs cleanup
于 2017-07-18T01:22:13.380 回答