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 Feb 1 '18

Keeping the Footer at the Bottom with CSS-Grid

At some point in a project, one gets annoyed by the footer hovering right und...

Andy Allison profile image