Is it possible to link TFS work items when using git -tf

I use git-tf and find that after checking my changes in TFS, I need to manually associate these changes with the TFS work items. I see the --work-item option in the documentation, but I wonder if it is possible for these associations to be created automatically; possibly using some tag in the comment, for example #refs 17 . I found the answers using git-tfs, but I wonder if this is possible without changing the tools; I prefer git-tf cross platform support.

+4
source share
1 answer

Yes, there are several ways to associate work items with commits. As you noticed, you can use the checkin argument, such as the --associate or --resolve check options, to bind or enable the work item accordingly.

If you prefer to use the commentary to manage this system, you can use the โ€œmentionโ€ functions found in git-tf 2.0.2, similar to the โ€œmentionโ€ functions in Team Foundation Service git integration. In this case, just add #1234 to the comment of your git commit to associate it with work item 1234 , then check with git tf checkin --mentions .

+7
source

All Articles