Discarding Unstaged Changes in Git
git clean -df & git checkout .
git clean -df = removes all untracked files
git checkout . = clears all unstaged changes [don’t forget the period]
Rolling back to a specific release while using Capistrano
cap deploy:rollback -s previous_release=/path/to/release/on/server
There are times when I make big mistakes, and rollback is my best friend. The line above just saved my life!
20+ TED Talks by Women in Computer Science