How to remove git tracking from your project repo (.git folder) 🙅♀️
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:
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. 👏