While working on a git project, I want to run a git pull --rebase
before each git push
. However, some developers in my team often forget to call git pull --rebase
before pushing. So, Git/Gerrit automatically performs a merge which creates a malformed commit message.I want to avoid this auto merging.
I want to configure clients git so that when developers run a git push
, a git pull --rebase
should automatically occurs. Is there any way?