Command line tool to manage Git repositories in TFS

 24 Apr 2015 -  Giulio Vian -  ~1 Minute

In a previous post , I quickly touched on TfsGitAdmin.

I published the code on GitHub at https://github.com/giuliov/TfsGitAdmin and added new features to it:

  • Adds an additional Git repository to a Team Project
  • Creates the default Git repository on a Team Project that was created without version control
  • Deletes an existing Git repository
  • List all Git repositories in a Team Project
  • Renames an existing Git repository

Some Usage Examples

TfsGitAdmin add -s http://localhost:8080/tfs -c DefaultCollection -p MySampleProject -r MyAdditionalGitRepository

Adds an additional Git repository to Team Project MySampleProject.

TfsGitAdmin rename -s http://localhost:8080/tfs -c DefaultCollection -p MySampleProject -o MyOldGitRepository -n MyNewGitRepository

Renames the existing MyOldGitRepository Git repository to MyNewGitRepository.

TfsGitAdmin list -s http://localhost:8080/tfs -c DefaultCollection -p MySampleProject

Lists all Git repositories in MySampleProject.

Final words

You will find the binaries at https://github.com/giuliov/TfsGitAdmin/releases. Hope you enjoy, and leave feedback on GitHub   or a comment here.

comments powered by Disqus