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!!

  • Publish a package to Bitbucket or GitHub
  • Git Push Error Not all refs have been pushed
  • GitHub authentication failing over https, returning wrong email address
  • Should Git ever think a file that it got from a pull is now untracked?
  • How do I read tagger information from a git tag?
  • How to checkout remote branch with git clone --depth 1?
  • errors while committing the repository in sourcetree, Git window client
  • git - how to hide changes for a particular file at a repo level
  • Git branches and creation of new files
  • Failed patch changed my Git Bash prompt, how do I revert it?
  • Importing Issues from Bitbucket to Github
  • TortioiseGit - Trouble creating a local repository
  • 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.