Banish those unwanted repo files

andrewallison

Andy Allison

Posted on November 12, 2019

Banish those unwanted repo files

I was recently tasked with moving some of our legacy svn repos over to git (I'll do another post on that once we have it completed). This is just a nice snippet that I found useful when cleaning them up a bit.

We added the .gitignore file for visual studio and then ran this little gem to clean down a few things.

git rm -r --cached .
git add .
git commit -m ".gitignore is now working"

Happy cleaning

💖 💪 🙅 🚩
andrewallison
Andy Allison

Posted on November 12, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Banish those unwanted repo files
git Banish those unwanted repo files

November 12, 2019