Import git repository into Mercury/KILN - Kiln Knowledge Exchange most recent 30 from http://kiln.stackexchange.com 2013-06-19T04:13:48Z http://kiln.stackexchange.com/feeds/question/2750 http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://kiln.stackexchange.com/questions/2750/import-git-repository-into-mercury-kiln Import git repository into Mercury/KILN peterchen 2011-01-04T21:17:31Z 2012-09-07T18:24:23Z <p>I want to import a git repository into KILN (rather, convert it, i.e. I want to switch from git to kiln).</p> <p>I have found some references to a KILN Importer (mostly, problems with it), but nothing useful on this site or the tortoisehg manual.</p> <p>Any place where I should start to look?</p> <hr> <p>Details:</p> <p>currently I have:</p> <pre><code>Sources\ SomeLib\ // git repo here .git\ codeetc\ SomeProject\ // Kiln here .hg\ codeetc\ Many\ Other\ Folders\ Here\ </code></pre> <p>I want to get both project under KILN, but preserve the history of from the .git repo if possible.</p> <p>I am using FogBugz/KILN going solo,</p> http://kiln.stackexchange.com/questions/2750/import-git-repository-into-mercury-kiln/2752#2752 Answer by Tyler Hicks-Wright for Import git repository into Mercury/KILN Tyler Hicks-Wright 2011-01-04T22:14:52Z 2011-01-04T22:14:52Z <p>The easiest way to move between Git and Mercurial is to use <a href="http://hg-git.github.com/" rel="nofollow">hg-git</a>. The easiest way to install it, from the hg-git page:</p> <blockquote> <p><strong>The easy way</strong></p> <p>Run easy_install hg-git, then add make sure the following is in your ~/.hgrc:</p> <pre><code>[extensions] hgext.bookmarks = hggit = </code></pre> <p>...and that's it!</p> </blockquote> <p>Once it's installed, you can just run:</p> <pre><code>$ hg clone git://url/to/your/git/repo.git repo_hg </code></pre> <p>Once it's cloned, you just need to push it to Kiln:</p> <pre><code>$ cd repo_hg $ hg push https://example.kilnhg.com/Repo/Project/Group/Repo </code></pre> <p>That's it!</p>