Remove Git repository, but keep all files
git, linux
Solution
Just remove (or rename) the `.git` subdirectory. That subdirectory is the whole of the repository. This will not delete your files, but it will delete their history.
Additionally, there might be files like `.gitignore` and `.gitattributes` that are not necessary anymore.
Make sure that all your files are present in the working tree before removing/renaming `.git`.
Problem
At some point during my adventures with Linux, I decided that it would be a good idea to put everything in my home directory into source control. I'm not asking whether that was a good idea or not -- I'm asking how to undo it. The reason for removing the repository is that I recently installed Oh My Zsh, and I really like it. The rub is that my home directory has a big `git:(master)` stuck behind it, and I'm just not a huge fan of that. So what I would like to do is remove the git repository itself, so that the `git:(master)` is no longer displayed, without deleting all of my files.