title: Is there a way to configure git repository to reject 'git push --force'?
body: <p>I was wondering is there a way to prevent '<code>git push --force</code>' on a repository (only on master branch)?</p>
  
  <p>Assume I have remote git repository and do:</p>
  
  <ul>
  <li>'<code>git push</code>' to 'master'. It works.</li>
  <li>'<code>git push --force</code>' to 'branch-1'. It works.</li>
  <li>'<code>git push --force</code>' to 'master'. It is rejected.</li>
  </ul>
  
  <p>Is it even possible?</p>
  
  <p>Thanks for any answers and suggestions.</p>
  
  <p>BR,
  Dawid.</p>