Yes, there are a number of ways to associate work items with commits. As you note, you can use a checkin argument like --associate
or --resolve
checkin options to associate or resolve a workitem, respectively.
If you prefer to use a comment to drive this system, you can use the "mentions" features that are in git-tf 2.0.2, similar to the "mentions" features in the Team Foundation Service git integration. In that case, simply add #1234
to the comment of your git commit in order to associate with work item 1234
, then checkin using git tf checkin --mentions
.