How Completely Uninitialize (Remove) Git from your Project

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.


Has this been helpful to you?

You can support my work by sharing this article with others, or perhaps buy me a cup of coffee 😊

Kofi

Share & Discuss on