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