git-tfs parses your commit comments to provide work item associations with your changesets. By default, if you enter #1234
, then the git-tfs checkin
and rcheckin
commands will attempt to associate work item 1234 with the checkin.
If you are using #1234
in your commit messages in order to associate these with a different bug tracking system, this is obviously in conflict. In this particular case, git-tfs
cannot find the TFS work item and is providing you with this message.
As of recently, you can provide a configuration value:
git-tfs.work-item-regex
in order to override the #1234
behavior. While there is no way to disable this functionality, you can set it to something you would be unlikely to conflict with. For example:
git-tfs.work-item-regex=TFS WORK ITEM:(?<item_id>\d+)