UPDATE I should have checked if git has a command for this. Anyway SomeGuy
has reminded me once again that I should GTFT (Google the f*** thing) before
creating a task. Thanks for the tip SomeGuy :). Long story short, use
git clean to cleanup
Whenever I merge stuff from my colleagues, I end up with a bunch of *.orig files. So, I created a simple rake task which deletes all the untracked files.
This will permanently delete all untracked files from your working copy, so use it with care! :)