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!
With Firefox OS, asm.js, and the push for browser performance improvements, canvas and WebGL technologies are opening a world of possibilities. I featured 9 Mind-Blowing Canvas Demos and then took it up a level with 9 Mind-Blowing WebGL Demos, but I want to outdo...
My team mate Edna Piranha is not only an awesome hacker; she's also a fantastic philosopher! Communication and online interactions is a subject that has kept her mind busy for a long time, and it has also resulted in a bunch of interesting experimental projects...
I was recently perusing the MooTools Forge and I saw a neat little plugin that allows for static element rotation: Fx.Rotate. Fx.Rotate is an extension of MooTools' native Fx class and rotates the element via CSS within each A-grade browser it...