Skip to content

Instantly share code, notes, and snippets.

@patrickjohnstevens
Last active November 5, 2022 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patrickjohnstevens/0f01ab655010994739e584eddcbf7534 to your computer and use it in GitHub Desktop.
Save patrickjohnstevens/0f01ab655010994739e584eddcbf7534 to your computer and use it in GitHub Desktop.
How Completely Uninitialize (Remove) Git from your Project

How Completely Uninitialize (Remove) Git from your Project

https://techstacker.com/how-to-remove-git-from-project/

Git 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment