DEV Community

Andy Allison
Andy Allison

Posted on

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

Top comments (0)