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.
Related questions:
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.
Related questions:
Try removing the .git
directory and .gitignore
if exist: rm -Rf .git .gitignore
The shorted command should be
rm -Rf .git*
EDIT:
You must remove only .git
folder. Your home's .gitignore
file is used by git to automatically ignore files. For example, ... instead of put .idea (an editor dot file) in all your project, you can just add it once in your global gitignore.
Tecnically
rm -rf .git*
delete also this .gitignore file.