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 initgit config core.ignoreCase falseRun 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 HEADUse 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.gitgit remote add bitbucket <link-to-SimonSays-git>
git push --all bitbucket
git push --tags bitbucketThe 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.