I know that I can go back in history to earlier commits using git reset --hard <commit>
. However, this only lets me roll back to the first commit (not before the first commit).
I want to do this, since I created a Git repository and committed a lot of wrong files and directories. Simply deleting the repository and starting over is not an option here, since repositories are created by an admin.
How can I reset my Git repository to the state before the first commit?