pre commit Git Hook Put this file in your hook directory. With this hook you can: Avoid to commit directly in master/main branches Avoid to commit when you have files with merge conflicts