Delete or un-initialize git repository

If you want to completely remove the or un-initialize git from project and keep the working copy intact, delete the .get folder from your project root or use following to remove from command-

rm -rf .git

After this if you might get this error if you are trying to command on the non-initialized folder

fatal: Not a git repository (or any of the parent directories): .git

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s