Capistrano: automatically check if remote origin updated before deploy
Sometimes I forget to push local commits to the remote repository before $ bundle exec cap production deploy.
It is possible to check the git status before command, and if there are uncommited and/or unpushed changes, abort the deploy command.