Skip to content

Special actions in commit messages

davidalpert edited this page Sep 11, 2012 · 3 revisions

Connecting commits with Work Items

As of v0.13, special keywords inserted in Git commit messages can be used during an rcheckin to associate or resolve TFS Work Items.

Associating a work item

A git commit message containing git-tfs-work-item: <id> associate will associate the changeset (generated as part of the rcheckin process) with work item #(id)

Resolving a work item

A git commit message containing git-tfs-work-item: <id> resolve will resolve work item #(id)

Overriding checkin policies

As of Commit fd973eee10270, a git commit message containing git-tfs-force: <reason> will force the checkin, overriding TFS Checkin Policies with the given <reason>. The reason is required when forcing a checkin.

Clone this wiki locally