How to remove git tracking from your project repo (.git folder) 🙅‍♀️

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

--

--

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

Nicolas Carmont

24 Followers

26K+ Reads ✍🏼 Co-founder & CTO @Connect Earth. Ex-Amazon 👨‍💻 Passionate about sustainability and software👌 Views are all my own.