gpt4 book ai didi

tfs - 将变更集与工作项关联 git-tfs

转载 作者:行者123 更新时间:2023-12-01 11:38:51 25 4
gpt4 key购买 nike

我试过解决这个问题,但到目前为止没有成功。我正在使用 git-tfs检查我对 TFS 的更改(本地使用 GIT 存储库)

我阅读了这个问题,它简要描述了您可以使用元数据 (TF26198 error when doing git tfs rcheckin) 在提交消息中关联工作项。我尝试使用的命令:

1)

git tfs checkin -m "Changes to workitem #12345" => doesn't associate changeset to TFS workitem

2)

git tfs rcheckin -w12345 -m "Changes to workitem 12345" => triggers error "error: This syntax with one parameter is only allowed in bare repository." 

3)

git tfs checkin -w12345 -m "Changes to workitem 12345" => triggers error No TFS parents found

4)

git tfs checkin -m "Changes to workitem #12345" => doesn't associate work item

对我做错了什么有什么想法吗?

谢谢,尤利亚

最佳答案

尝试像这样在 -w12345 后面添加 :a:

git tfs rcheckin -w12345:a -m "Changes to workitem 12345"

git tfs checkin -w12345:a -m "Changes to workitem 12345"

你也可以使用 :r 而不是 :a 来“解决”而不是“关联”

我认为如果您不指定值,它应该默认为 :a,但这对我来说从来没有用过。

关于tfs - 将变更集与工作项关联 git-tfs,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24009847/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com