This repository transfers ALL of your Bitbucket repositories to Github while maintaining its privacy status.
- 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.
Make sure you have node and npm before continuing.
Since this version of the script is cloning Bitbucket repos with SSH, make sure your SSH public key is added into Bitbucket settings.
git clone https://github.com/pouriaa/bitbucket-to-github.git
cd bitbucket-to-github/
npm i
cp .env.sample .env
Use https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/
to create your token.
This repository uses the dotenv
library to handle configuration variables.
node index.js