Remove commit history
- how-to-delete-all-commit-history-in-github from stackoverflow
Checkout
git checkout --orphan latest_branchUpdate the index git Documentation
git add -ACommit the changes
git commit -am "commit message"Delete the branch
git branch -D masterRename the current branch to master
git branch -m masterFinally, force update your repository
git push -f origin master