git: Remove Untracked Files
I've always said that I know just enough about git to get the job done, but also do something destructive. Nothing embodies that more than my recent mistake. I somehow found a git repository full of untracked files and
git stash wouldn't fix it. Desperation led me to learning how to remove all untracked files, the same way
hg purge does for mercurial.
To remove untracked files and directories, you can execute:
# Remove untracked directories
git clean -fd
# Remove only untracked files
git clean -fX
There you have it -- you've removed your untracked files. The dangerous side? It will also delete files hidden by
.gitignore when you run a
git status. Be careful when removing untracked files!
David asked me if I'd be up for a guest post picking out some of my favorite Pens from CodePen. A daunting task! There are so many! I managed to pick a few though that have blown me away over the past few months. If you...
new Element Madness
The first way to create UI-driven...
A big part of the sexiness that is Apple software is Apple's use of opacity. Like seemingly every other Apple user interface technique, it needs to be ported to the web (</fanboy>). I've put together an example of a sexy opacity animation technique...
Image protection is a hot topic on the net these days, and why shouldn't it be? If you spent two hours designing an awesome graphic, would you want it ripped of in matter of seconds? Hell no! That's why I've created an image...