git checkout the old project
remove the remote connection to GitHub repo
git remote rm originadd in a new remoteflatten the history of the old repoforce push back to the server
git remote rm origin