Search code examples
mercurialgithubgithub-for-windowsmercurial-convert

Can't convert a Git repository to Mercurial


I have Git repository that I'm trying to convert to Mercurial. Running

hg convert c:\code\git-repo

results in the following error:

assuming destination git-repo-hg initializing destination git-repo-hg repository abort: cannot find required "git" tool

I have the Git Hub for Windows application installed. Am I missing something else?


Solution

  • Thanks to the help of dimo414 and J-16 SDiZ I was able to fix it. The problem was that GitHub for Windows didn't setup the location of Git into the Windows Path. Adding it to the path or simply running the hg convert from within the Git folder should work.