[Git]: Remove All Commit History

git

03/21/2020


BASH
git checkout --orphan temp_branch
git add .
git commit -m "[REVERT]: reverted commit history"
git branch -d master # Delete master branch
git branch -m master # Rename temp_branch to master
git push -f origin master

WRITTEN BY

Keeping a record