git checkout the old project

 

remove the remote  connection to GitHub repo

git remote rm origin


add in a new remote

flatten the history of the old repo


force push back to the server