0

What is the command to rollback the git repo to its empty/default state?

2
  • Just remove the .git directory. Commented Feb 20, 2012 at 6:14
  • (Your title is misleading.) Note that removing the .git directory also removes your staged content, which is not the same as unstaging files (which would be git reset). Commented Feb 20, 2012 at 6:24

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.