How to create a brand new git repository from an existing hg repository. This is not explained on http://hg-git.github.com/

  easy_install hg-git
  # Now edit your ~/.hgrc as per http://hg-git.github.com/

  # Now make a bare git repository. Yes, bare.
  git init --bare ~/my-git-repo    # the --bare is important!

  # Now proceed as per http://hg-git.github.com/
  cd ~/my-hg-project
  hg push ~/my-git-repo

Now cd to the git repo and check the log. If email addresses are broken, you may need to do something like http://stackoverflow.com/questions/750172/how-do-i-change-the-author-of-a-commit-in-git


Comments

comments powered by Disqus