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
ls
doesn't show hidden files by default. you would have better luck with ls -A
or ls -a
(the latter also shows the current and top directories as '.' and '..')
Mar 10, 2020 at 10:43
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.
rm -rf .git
.