I did git init
and git add .
on my home directory, which slowed every operation down, I think, because the directory is so large. How can I undo git init
of the home directory?
Asked
Active
Viewed 1.0k times
10

Pippi
- 2,451
- 8
- 39
- 59
-
[Is there a way to undo git init](https://stackoverflow.com/q/3212459/6521116) – LF00 Jun 07 '17 at 09:36
-
Possible duplicate of [Is there a command to undo git init?](https://stackoverflow.com/questions/3212459/is-there-a-command-to-undo-git-init) – LF00 Jun 07 '17 at 09:36
1 Answers
27
You can just do rm -rf $HOME/.git
to remove all the version control information stored by git, which undoes whatever git init
did.
But I highly doubt that running git init
could slow anything down.

Tuxdude
- 47,485
- 15
- 109
- 110
-
If he's running on Windows perhaps he's got some shell extension trying to badge everything now. – jthill Mar 04 '13 at 06:32