TFS Build: Create git-tag during build

I am trying tag sources during a build with the build number. To create the tag via command-line is not rocket science, but that prompts me for my login details.

How would I be able to modify my build process to create a git tag just after it got the source from git.

  • Git fetch from PHP file with shell_exec using private keys
  • git: Pushing Single Commits, Reordering with rebase, Duplicate Commits
  • How to make `git log --stat — <path>` show *all* files in selected commits?
  • How best to squash old commits
  • After a git pull there a lot of unrelated modifications in the staging area
  • Can I use git-svn and look like I was using SVN, if yes how?
  • Thanks,
    MS

  • Gitosis alternative?
  • How to recover `.git/index` locally?
  • Merge two separate SVN repositories into a single Git repository
  • Easy way to Git squash?
  • How to get only changes from branch's branch in git?
  • How to reliably check whether a file is ignored by git?
  • Git Baby is a git and github fan, let's start git clone.