stolen and modified from https://gist.github.com/leosoto/ebd8554635d0e5f4346d9b57da3c9f5d
this version is for your own private user repo instead of organizations also uses personal access token instead of user/pass/2fa
# install bitbucket cli on mac os
sudo easy_install pip
sudo pip install bitbucket-cli
# make a github personal access token with private repo control
export GH_USERNAME=<your github username>
export GH_PERSONAL_ACCESS_TOKEN=<your github personal access token>
export BB_USERNAME=<your bitbucket username>
export BB_PASSWORD=<your bitbucket password>
# run the script
./bb2gh.sh