http://www.microsoft.com/en-us/download/details.aspx?id=30474
- http://visualstudiomagazine.com/articles/2012/08/13/tfs-now-integrated-with-git.aspx
- http://stackoverflow.com/questions/12866832/whats-the-difference-between-git-tf-and-git-tfs
- git-tfs built for Windows and written on top of .NET TFS SDK
- git-tf was built for cross-platform users and written on top of JAVA TFS SDK
- Download git-tf from http://www.microsoft.com/en-us/download/details.aspx?id=30474
- Unzip the package and read Git-TF_GettingStarted.html
- Prerequisites include:
- Latest version of Git
- see https://gist.github.com/3003724#file-gitconfig-md for configuration details
- Java SDK
- Latest version of Git
- Now just add the path to the git-tf folder and follow along with http://tfs.visualstudio.com/en-us/learn/code/use-git-and-xcode-with-tfs/ and you'd be up and running in no time
$ mkdir example-git-tf-project && cd example-git-tf-project
$ ... do some stuff ...
$ git init && git add . && git commit -m "Initial commit"
# The following step only needs to be done once:
$ git tf configure https://caribbeanideas.visualstudio.com $/example-git-tf-project
$ git tf checkin
$ git tf clone https://caribbeanideas.visualstudio.com $/existing-tfs-project
-
If you don't want to be prompted for credentials every time you run
git-tf
, you can store your credentials in your Git configuration.$ git config --global git-tf.server.username your-username $ git config --global git-tf.server.password your-password
# Make sure you're working with your team's latest code by pulling from TFS
$ git tf pull
$ git checkout -b topic-branch dev
$ ... do some work locally in your git repo and test ...
$ git add .
$ git commit -m "Describe your commit"
# Merge your changes into the local development branch and maybe do some more testing
$ go dev && git merge topic-branch
# Merge your changes into the master branch
$ go master && git merge dev
# Update TFS
$ git tf checkin
# or
# Maybe you're working on a task or fixing a bug that's tracked as a work item. Then indicate
# that when you check in. TFS will resolve the bug or close the task, and it'll link the
# changeset to the work item. That will trace through to things like build reports
$ git tf checkin --resolve=xxxxx
$ git tf help