What is the command to rollback the git repo to its empty/default state?
1 Answer
You can init a new repo
rm -rf .git
git init
If you don't even want the files, just start a new repo.
PS: You might want to explain what you really want to achieve and why, as there maybe a better way to approach what you are doing.
.git
directory also removes your staged content, which is not the same as unstaging files (which would begit reset
).