- Grab hg-fast-export from here
- Make an empty directory for the new git repository
- From this empty directory, run the following commands:
- git init
- hg-fast-export.sh -r
"location of mercurial repo" - git reset --hard
If you're lazy like me, you can copy the files in hg-fast-export over to the new directory, run hg-fast-export.sh and then delete them afterwards (before step 6).
So far, it seems to be a very clean transition, all commits are in place. Of course, the repository is very small with no branches so no issue was expected.
Oh yeah, Mercurial and Git are distributed version control systems which greatly lessen the dependency on the old subversion client-server model. As to which one is better, I'm totally not qualified to make any judgement, but git does take 3 letters to type, while hg takes just 2. :)
No comments:
Post a Comment