Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 483
Jonas Stawski Avatar asked Jan 16 '23 18:01

Jonas Stawski


1 Answers

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.

like image 182
Jonas Stawski Avatar answered Jan 27 '23 05:01

Jonas Stawski