I'm looking for a way to prevent commits which have no correct format for the commit message.
I intend to use the following convention:
https://www.conventionalcommits.org/en/v1.0.0/
I found out there is a folder with bash scripts which may be the key to that solution: .git/hooks/
However, I'm not sure how to write the script to enforce the format on the commit messages.
Will edit accordingly, thank you in advance.