Remove Git Repo Configuration and History

John de Havilland bio photo By John de Havilland

Step 1: Remove all history

rm -rf .git

Step 2: Reconstruct the Git repository

git init
git add .
git commit -m "Initial commit"

Step 3: push to GitHub.

git remote add origin <github-uri>
git push -u --force origin master