Banish those unwanted repo files

github logo ・1 min read

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

twitter logo DISCUSS
Classic DEV Post from May 13 '19

How to approach solving a challenge during a coding interview

Like many things in life, mastery requires practice and the coding interview is n...

Andy Allison profile image