Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to undo git init on a home directory?

Tags:

git

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?

like image 403
Pippi Avatar asked Mar 04 '13 02:03

Pippi


1 Answers

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.

like image 125
Tuxdude Avatar answered Sep 29 '22 02:09

Tuxdude