Visa Inc. Interview Question

How to enforce a commit message locally if it contains a required keyword

Interview Answer

Anonymous

Dec 19, 2025

I explained that commit message rules can be enforced remotely using GitLab Push Rules. While is was not specified whether the enforcement was expected to be local or remote, I understand that another valid alternative approach would be using a local "commit-msg" hook.