Some notes/links on Git-TF: the GIT/TFS bridge
Posted by jpluimers on 2014/06/05
TFS 2012 Update 2 and up can do GIT or TFS (now called TFVC for Team Server Version Control). It was improved in TFS 2013, but still it leaves two small problems:
- It cannot host the same repository as both GIT and TFVC.
- It cannot conver from GIT to TFVC or back.
Luckily there are two tools that can help: GIT TF and GIT TFS.
GIT TF (now forked on github a few times) is a way to bridge TFS and GIT. It is different from GIT TFS (that only runs on Windows, it is provided by Microsoft).
You can use both for instance to move GIT to/from TFS, or to compare or leverage GIT against TFS Express and Team Foundation Service which are both free for up to 5 developers. A few notes and some more links:
- GIT TF requires GIT
- I installed Portable Git 1.8.2 from http://code.google.com/p/msysgit/downloads/detail?name=PortableGit-1.8.1.2-preview20130201.7z This is Windows based msysgit, which – unlike the Cygwin based gits – is based on msys/MinGW.
- I installed GIT TF 2.02 from the Download Git-TF from Official Microsoft Download Center. Installation was easy: unzip into a folder, then add that folder to the Windows PATH.
- [Archive.is] git tf clone does not require a git init, and will create a local directory for you.
- [Archive.is] git tf configure does require a git init, and will not create a local directory for you.
- If you want to keep your TFS history, then you need to apply the –deep option to both git tf clone, and git tf configure.
- [WayBack] If git tf clone –deep fails, then either retry with the –verbose option, or have it followed by git tf pull (you can also add –verbose there to see when/where it fails).
- Think like git: Git Reference.
- If you perform a [Archive.is] git tf pull, and get the error message “git-tf: this git repository is not configured to use git-tf”, then your git tf configure did not work correctly ([WayBack] possibly because of a permissions issue)
- On one of the TFS repositories, I still get a “git-tf: null” (even with verbose flag) even when trying the steps at [WayBack] Git-TF – View Issue #2: Clone ends up with untracked files. Still need to research that.
- You can even use this to go from TFS through GIT to TFS (though it is better to use TFS to TFS tools as they are faster): Git-TF push all changes to another TFS repository – Stack Overflow.
- Oh and GIT TF got started by Microsoft according to Microsoft embraces git with new TFS support, Visual Studio integration | Ars Technica.
- version control – What is the difference between “git init” and “git init –bare”? – Stack Overflow.
GIT-TFS: is much faster, and requires the Microsoft Visual C++ 2010 runtime DLLs (which are part of the Download Microsoft Visual C++ 2010 Redistributable Package (x86) from Official Microsoft Download Center)
–jeroen
via: [WayBack] Git-TF – Home.
Leave a Reply