How to migrate from bitbucket (or other git) to github

Git
  1. Create Private repository from web screen of github.com

2. Move to the repository where you are working and type following command

PJ=...;
USER=...;
git remote set-url origin 'git@github.com:'$USER'/'$PJ'.git';
git push;

If your removed files are so large and you cannot import your git into github due to its size, remove unnecessary files from the edit history.

git filter-branch --index-filter "git rm -r --cached --ignore-unmatch $FilesPathToBeDeleted" HEAD

Then type git push