How do I disable a directory?

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

Interesting that

$ git status

      

Tells me that the Mozilla Firefox cache has been changed.

Terminal screenshot


Similar questions:

+3


source to share


3 answers


Try to remove the directory .git

and .gitignore

if they exist:rm -Rf .git .gitignore



+7


source


You can simply remove the folder .git

from your homedir.



+3


source


The shorted command should be

rm -Rf .git*

      


EDIT:

You should only delete the folder .git

. Your home .gitignore

file is used by git to automatically ignore files. For example ... instead of putting a .idea file (editor text file) throughout your project, you can just add it once to your global gitignore.

Tecnically

rm -Rf .git*

      

delete that .gitignore file as well.

+2


source







All Articles