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:

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. πŸ‘

--

--

26K+ Reads ✍🏼 Co-founder & CTO @Connect Earth. Ex-Amazon πŸ‘¨β€πŸ’» Passionate about sustainability and softwareπŸ‘Œ Views are all my own.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Nicolas Carmont

26K+ Reads ✍🏼 Co-founder & CTO @Connect Earth. Ex-Amazon πŸ‘¨β€πŸ’» Passionate about sustainability and softwareπŸ‘Œ Views are all my own.