Recently, we decided to migrate our projects from GitHub to BitBucket. For now, I tested with few projects as BitBucket has direct import feature. Everything is just fine, except GitHub issues, and wikis are not imported. Since most of the projects are still in development and some in production, issues, and wikis are important for us.
I did quick Google search and could not find proper solution.
Is there any solution?
When creating a new repository in BitBucket, click the button Import repository at the top right. Enter the https url found when clicking Clone or download in Github for the repository you want to fork. Give your repository a name, configure your privacy settings, and there you go!
Today we added proper issue import and export to Bitbucket. You can export an entire repo's issue tracker as a zip and then re-import on a different repo.
You can also create your own zips and so you could write very migration scripts to and from other issue trackers (e.g. GitHub).
Details: https://confluence.atlassian.com/display/BITBUCKET/Export+or+Import+Issue+Data
File format and data layout: https://confluence.atlassian.com/pages/viewpage.action?pageId=330796872
I was also searching for a way to import Github issues to Bitbucket but didn't find one, so I wrote a script to do that: https://github.com/sorich87/github-to-bitbucket-issues-migration.
For the wiki, it's a Git repository that you can simply clone. https://github.com/blog/699-making-github-more-open-git-backed-wikis
Both github and bitbucket have REST APIs for issues (GitHub's, Bitbucket's), so you could write a (fairly) quick script to migrate issues. However, GitHub has no API for wikis (Bitbucket does), so, unfortunately, you'll likely have to do that by hand.
This is the step by step version of Erik van Zijst's resources:
http://codetheory.in/export-your-issues-and-wikis-from-github-repo-and-import-to-bitbucket-migration/
It shows step by step how to do it. Hopefully this will save you some time.
I was able to import all my Github issues into BitBucket!
There is another tool, written in python, for exporting github issues into bitbucket issues export format.
You can check it at gibiexport
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With