Here is my personally successful approach to convert an existing Bitbucket hg repo to a new Bitbucket git repo. In this example, I invented a repo with the name "SimonSays". I used Windows 8.1.
- Python 2.7 (https://www.python.org/downloads/release/python-2717/)
- Git (https://git-scm.com/)
- Use Git Bash
- Conversion script / tool fast-export (https://github.com/frej/fast-export)
- Download current master.zip
clone <bitbucket-link-to-SimonSays>
mkdir SimonSays-git
cd SimonSays-git
git init
git config core.ignoreCase false
Run it from within the directory of the newly created git repo
<path-to>/hg-fast-export.sh -r <path-to>/SimonSays/
Should not report any errors.
git checkout HEAD
Use Bitbucket's website to create a new git repo. In our example, we call it "SimonSays-git".
git clone --bare SimonSays-git
cd SimonSays-git.git
git remote add bitbucket <link-to-SimonSays-git>
git push --all bitbucket
git push --tags bitbucket
The new Bitbucket git repo must not have the same name as the bare repo.
Thanks for sharing, I'll check it out one day soon.