How to remove git tracking from your project repo (.git folder) πŸ™…β€β™€οΈ

Kiki AI
Nov 25, 2019

--

THANKS πŸ‘: I appreciate the many claps most my readers leave because it takes me a long time to write these free articles.

Okay, you want to remove git tracking from a project repo and make it track a new repo. How do you do this?

It’s easier than it sounds:

0.) Navigate to your project folder in the terminal:

cd [projectName]

1.) Remove the .git folder to remove all tracking

WARNING: MAKE SURE to do this at your own risk and type everything below correctly! If you don’t write the .git part it will erase everything in the folder you ran this in! ⚠️⚠️⚠️

rm -rf .git

And Wala you are done! 😊

I hope this helps and tell me if you have any questions. πŸ‘

--

--

Kiki AI
Kiki AI

Written by Kiki AI

26K+ Reads ✍🏼 Passionate about tech, AI and impact πŸ‘Œ Views are all my own.

Responses (2)