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
nil}">
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