Skip to content

Instantly share code, notes, and snippets.

@jefftriplett
Created January 12, 2010 05:13
Show Gist options
  • Save jefftriplett/274935 to your computer and use it in GitHub Desktop.
Save jefftriplett/274935 to your computer and use it in GitHub Desktop.
convert a mercurial (HG) repo to Git
# Converting an HG repo to Git with commit history (via: http://tinyurl.com/yajlk9x)
$ git clone git://repo.or.cz/fast-export.git
$ mkdir new_git_repo
$ cd new_git_repo
$ git init
$ /path/to/hg-fast-export.sh -r /path/to/hg_repo
$ git checkout HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment