So a few months ago, I apparently created a local repository, in the form of my user folder on my hard drive. I did this using some fool's attempt at a Git101 documentation, and as a result I currently have 168,352 pending/unstated changes. Is there a way to not only remove the git bookmark (from source tree), but also remove all of the .git* files from each folder?
Obviously, my goal is not to remove the contents from my user folder... as that would be bad.
If you did git init in the root of your user folder, it should have only created a .git folder in that folder itself.
You can remove it without damaging your actual files by executing the following in a terminal from your home folder:
rm -rf ~/.git/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With