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:
-
What is a .git folder?
-
What's the alternative for the ls command in Linux? [Duplicate]
Try to remove the directory .git
and .gitignore
if they exist:rm -Rf .git .gitignore
You can simply remove the folder .git
from your homedir.
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.