Skip to content
Migrate Bitbucket repositories over to Github.
JavaScript Shell
Branch: master
Clone or download
Pull request Compare This branch is 6 commits ahead, 6 commits behind pouriaa:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
repositories
.env.sample
.gitignore
LICENSE.md
README.md
index.js
package.json
removeEmail.sh
yarn.lock

README.md

Bitbucket to Github Migration - forked

This repository transfers ALL of your Bitbucket repositories to Github while maintaining its privacy status.

Changes made in the fork

  • Make use of exception handling, instead of passing flag to indicate status
  • Make use of Promise.all() to pull/create/push repos "at the same time"
  • Repositories are cloned using SSH instead of HTTPS.

Getting Started

Make sure you have node and npm before continuing.

Add your SSH public key to Bitbucket

Since this version of the script is cloning Bitbucket repos with SSH, make sure your SSH public key is added into Bitbucket settings.

Clone the repo

git clone https://github.com/pouriaa/bitbucket-to-github.git

Enter the repo

cd bitbucket-to-github/

Install dependencies

npm i

Make an environment variable file

cp .env.sample .env

Create an access token on Github

Use https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/ to create your token.

Enter your Github and Bitbucket credentials to .env

This repository uses the dotenv library to handle configuration variables.

Run the script

node index.js

You can’t perform that action at this time.