Reputation: 591
Currently, I have Mercurial as my version control in Kiln server. I want to migrate my code to Bitbucket server with Git. I have tried the import option available in Bitbucket but I can only import as a Mercurial repository.
Is there any possible way to achieve this?
Upvotes: 4
Views: 1449
Reputation: 38096
Except the fast-export tool, there is an easy way to migrate Hg to git:
mkdir git
cd git
git init
cd ..
hg clone <URL for hg_repo>
cd <hg_repo>
hg bookmarks hg
hg push ../git
cd ../git
git checkout hg
git remote add origin <URL for bitbucket repo>
git push -u origin hg
Upvotes: 2
Reputation: 8043
You probably need to do the Mercurial -> Git
conversion on your own machine with a tool like fast-export
.
You then create a new repo on Bitbucket and follow the instructions to push your project to it. You shouldn't hit any major roadblocks.
This answer will give you further information on how to do it.
Upvotes: 1