Convert mercurial (hg) to git repository for bitbucket
To convert hg repository on bitbucket to git repository follow below steps.
Create new repository with Repository Type selected as Git follow below commands with the assumption that you already have hg repository cloned on your system. If not then you first need to clone existing hg repository. Steps to follow
$ git clone git://repo.or.cz/fast-export.git $ mkdir <new git repo> $ cd <new git repo> $ git init $ ../fast-export/hg-fast-export.sh -r <path to hg local repository> $ git checkout HEAD $ git remote add origin https://<username>@bitbucket.
[Read More]