Removing git from git folder

Sometimes, you want to remove all of git from a repository.

rm -rf .git

This will leave only the working directory. Make sure you are in the right place and that this is what you want to do.