Git to TFS 2008 one way migration (with history)

I’m a newbie to Git. I’m exploring one-way one-time migration of Git repository to TFS (with history). I’m looking into plugin gittfs. I couldn’t find any help/wiki/blog on this particular scenario. Can I use git-tfs checkin or git-tfs clone command in this case? Any examples would be great!! Thank you!!

  • Cloning Git Repo using TFS Personal Access Token
  • Migrate Git to TFS with all history
  • git-tfs clone not fetching all changesets
  • How to fix TFS incorrect branching
  • Apply specific changeset from one TFS instance to another
  • Is there a name for the merge conflict syntax Git uses?
  • Equivalent of “My Work” in Visual Studio 2013 with Git for source control
  • Change Visual Studio Online team project source control from TFVC to Git
  • One Solution collect form web for “Git to TFS 2008 one way migration (with history)”

    I was able to do it on test repository. Big thanks to Ivan Danilov. Here are exact steps:

    1. Download zip
    2. Unblock (right click file->properties->unblock) downloaded files (win 7 for me)
    3. Copy to C:\Program Files (x86)\Git\bin
    4. Now you should be able to run Git tfs commands.
    5. Create empty TFS target folder (assuming you are migrating to empty folder)
    6. Bind TFS to Git repository and then upload Git changes to TFS.
      (Run commands in sequence):
       git tfs init http://server:8080/tfs/collection $/project -d 
       git tfs pull
       git rebase tfs/default
       git tfs rcheckin

    Please note rebase is the key. It could be more complicated if you have branches etc and I haven’t tried those scenarios.

    Please see this link and this link for more details.


    Git Baby is a git and github fan, let's start git clone.