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 8,619 times
8
Pippi
- 2,293
- 6
- 36
- 55
-
[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
25
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
- 44,385
- 13
- 103
- 107
-
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