Skip to content

Transfer Bitbucket workspace repositories into GitHub organization with ease.

Notifications You must be signed in to change notification settings

EduardoRodriguesF/bitbucket-to-github

Repository files navigation

Bitbucket to Github migration

Created to migrate the econverse-ag workspace into @EconverseAG organization.

Transfer every repostory in a given Bitbucket workspace to a defined Github organization.

Usage

  1. Download the repository either via git or its zipfile.

  2. Copy .env.example into a new file named .env.local and fill the necessary values.

  3. Create a file named .repoignore in the root of the repository and list the repostories name that you would like to ignore. This file will also be used to keep track of the repositories that have already been transferred.

  4. Assuming you already have Ruby and bundle in your machine, run the following command to install dependencies.

bundle
  1. Then, execute the bash script run.sh using this command:
sh run.sh

Now watch the magic happening... and have a great migration!

Disclaimer

This program uses the GitHub API to create a repository before pushing it to the new remote. However, it has a request limit that might get triggered if you have too many repositories. If you start to see error messages in the command line, stop the execution with Ctrl + C and wait for about 20 minutes, then run the program again.

Thanks to the .repoignore file, all already migrated repositories will be skipped to save you some time in that case.

Need any help?

Feel free to open an Issue, then I'll be glad to help :)

About

Transfer Bitbucket workspace repositories into GitHub organization with ease.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published