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

2019-01-08 - Git
  1. Create Private repository from web screen of

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

git remote set-url origin ''$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