Is it possible to change a bitbucket repository type?

If I create a Git repository X at Bitbucket, can I change it to Mercurial later ?

4 answers

1 accepted

1 votes
Jason Worley Atlassian Team Mar 27, 2013

Greetings!

The answer is, absolutely!

Here is a quick how-to link, which contains a full detailed tutorial:

http://blog.bitbucket.org/2011/10/05/converting-hg-repositories-to-git/ .. since that info was specific to coverting mercurial to git and your question is how to covert git to mercurial, I googled "bitbucket covert git to hg" and got some hits such as this:

http://ayaz.wordpress.com/2011/02/10/converting-a-git-repo-to-mercurial/

Note: the latter URL is not from Atlassian so please proceed with caution.

I hope this info was helpful.

Happy Coding!

Cheers,
Jason | Atlassian

So shouldnt the anser be NO here. I mean what you can do is export/import from one type to the other. But you cant use bitbucket option to just change repository type and let bitbucket worry about conversion and commit history (while also keeping twiki, issues and others)

Can we please have an authoritative answer to the question about the rest of the things besides the code?  Based on no one saying it's possible, it looks like there isn't a way to convert an hg repo to a git repo while keeping the issues.  True or False?

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

636 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot