title: Create pre-push hook to lint/test
body: <p>I was wondering what is the best way to create a pre-push hook (in a git repo) which does the following:</p>
  
  <ul>
  <li>Run JSHint / JSLint</li>
  <li>Run Unit and functional tests</li>
  <li>If everything is ok then accept the update</li>
  <li>Otherwise refuse the update</li>
  </ul>