Is there a way to prevent a File Commit when the file contains specific configurable keywords?
You could add a pre-commit hook like the following to the repository which will check for the occurrence of certain keywords in the modified files:
https://github.com/niden/Git-Pre-Commit-Hook-for-certain-words
It looks like you're new here. Sign in or register to get started.