Posts Tagged ‘version control’

Converting a Mercurial repository to Git

2012/02/07 Comments off

Note to self:

Converting Hg repos to git using hg-fast-export.


$ sudo aptitude install hg-fast-export


$ cd new_git_dir

$ git init

$ hg-fast-export -r <hg-repo>

Works with:

git version

hg version 2.1

Converting a Subversion repository to Git

2012/02/06 Comments off

Just discovered this:

John Albin wrote an excellent article on how to convert a subversion repository to git: