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 .
source share