When migrating a repo from bitbucket to github, I like to take a simple and straightforward approach:
git remote set-url origin git@github.com:USERNAME/REPONAME.git
This example assumes that a remote branch named origin points to bitbucket, and you are resetting
that URL to now point to github. Then you can git push
to github.