title: Avoid binaries in git commit
body: <p>I have git integrated with gerrit,<br>
  I am trying to stop committing binary files into git,</p>
  
  <p>Here is what I tried:<br>
  I added <code>*.bin</code> in <code>.gitignore</code> file,<br>
  But that can be skipped using <code>-f</code> option while committing,</p>
  
  <p>Can anyone suggest an alternative method?</p>