Michael Peppler

Michael Peppler on wordpress

Mercurial to git repository in windows

leave a comment »

Holy crap this is hard.  I wanted to move some of my open source projects from bitbucket (Mercurial) to github and it was a lot more difficult than I expected.  The really tricky part was getting the ssh auth stuff correct.  Here is my step-by-step before I forget.

First I had to set up the hg-git plugin for mercurial but that wasn’t too bad I followed these steps to get it to work however I have python installed so I just installed dulwich normally.  Then I needed to find out how to use it and I found something on stackoverflow to fill my need.  This actually did exactly what I wanted and this command works perfectly.  I got a little caught up trying to get the ssh to work though.  You have to follow these steps to create a key (FYI the clip command doesn’t work) but in order for this to work on windows you’re going to have to load that key into puttygen and convert it to a .ppk file. Next load the converted key into pageant so that windows will remember it. Finally hg-git should convert the repository.

It seems so simple to have it all written out like this, I hope this saves someone a few hours of their life.

Advertisements

Written by mpeppler

June at 18:35

Posted in Programming

Tagged with , , , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: