When you initialize a git repository with git init
, you create a hidden git directory (.git
) inside your project directory.
To uninitialize (remove) git from your project directory, run this command in your Terminal/Command Line while inside your project directory:
rm -rf .git
The command above will completely delete git from your project, so only do this if you’re sure that’s what you want.