-
Create empty repo in github (click create and do not add any readme or licence)
-
Run:
git pull
git remote add backup [email protected]:user/repo-name.git
git push -u backup master
git remote -v
git pull -v
git branch --set-upstream-to origin
git push -u backup master
git push -u origin master