The following steps are suggested here: stackoverflow.com/…-repository
rm -rf .git
git init git add . git commit -m "Initial commit"
git remote add origin <github-uri> git push -u --force origin master