Does this answer your question? [How to undo git init on a home directory?](https://stackoverflow.com/questions/15193565/how-to-undo-git-init-on-a-home-directory)
– phdMar 06 '20 at 12:38
1
Warning to anyone in a similar situation with an "accidental" git repo at top directory level : make sure you **do not** use `git clean` at that point. It would delete your whole filesystem. Follow choroba's advice and defuse that time bomb.
– Romain ValeriMar 06 '20 at 13:16
1 Answers1
5
Just remove the .git folder in the top of the directory tree.