I am curious about how to remove the first commit in git.
What is the revision before committing any thing? Does this revision have a name or tag?
Another way you can do is:
git checkout devgit branch -D mastergit checkout --orphan masterOfcourse, all of this would depend on your usecase, but if you have more than one branch, deleting the .git directory does not make sense.