TFS 2013 Checkout override with a git branch

tfs, git comments edit

Another quick note, this time on TFS + git. When you queue a manual build you can specify what commit you want in a number of ways, using the “Checkout override” option. You can specify either a commit ID, a tag or a branch.

For the commit you paste the SHA-1, or a significant part of it, just as you do with the command line.

For the tag you just use the tag name.

For the branch you use the branch name, but there’s a silly trick that drove me nuts until jessehouwing pointed it out for me: you must prepend origin/ to your branch name.