Converting Repositories From Git to Mercurial
Mercurial probably has the best default tool available for converting from other repository types.
Conversion
To convert Git repository to Mercurial first enable the hg convert-tool by adding the plugin definition to your .hgrc
-file (located in your home directory)
[extensions]
hgext.convert=
Then convert your repository by running:
hg convert --datesort <source> <destination>
Mercurial Converter supports CVS, Subversion, Git, Darcs, Monotone, Bazaar, GNU Arch, Mercurial and Perforce
Installing Mercurial on OSX
It is easiest to install Mercurial using Homebrew:
brew install mercurial
But you can optionally use Python's pip:
brew install pip && pip install mercurial
Written by Marko Klemetti
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#