- Check out the existing repository from Bitbucket:
git clone https://<Bitbucket_Username>@bitbucket.org/<Bitbucket_Username>/<Repo_Name>.git
- Now adding new GitHub Repository as upstream remote of the repository which is clone from bitbucket.
cd <Repo_Name>
git remote add upstream https://github.com/<Bitbucket_Username>/<Repo_Name>.git
- push all branches and tags to GitHub Repository using below commands
git push upstream master
git push --tags upstream
git remote set-url origin https://github.com/<Bitbucket_Username>/<Repo_Name>.git
git push --mirror