Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to ungit a directory?

Tags:

git

I have accidentally put my home folder under git version control. How can I undo this? I am running Ubuntu 16.04.

Interestingly, running

$ git status

Informs me that the Mozilla Firefox cache has been altered.

Screenshot of terminal


Related questions:

  • What is the .git folder?

  • What is the alternative for ls command in linux? [duplicate]

like image 795
salehgeek Avatar asked Jun 02 '17 20:06

salehgeek


2 Answers

Try removing the .git directory and .gitignore if exist: rm -Rf .git .gitignore

like image 103
Daniel Pérez Avatar answered Sep 17 '22 15:09

Daniel Pérez


You can just remove the .git folder from your homedir.

like image 29
Mureinik Avatar answered Sep 18 '22 15:09

Mureinik