Remove Commit History Without Deleting Files

A simply approach could be remove ./git directory and then git init a new repo. A better way is: checkout a new branch and add all files to this branch -> remove master -> rename current branch as master -> gg ez!


Stack Overflow: how to delete all commit history in github?