TIL - How to Git Reset the First Commit
The First Git Commit So, you find your self in a situation where you have created your first git commit in a brand new repo, but you have committed some files you won’t want to track. To solve this you can go the Git way or you can just recreate the Git repo. The Git Ways of Resetting the First Git Commit Using one of the Git approaches will reset the first git commit without loosing: