Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Prevent Commit based on Content in a File

dilipmaddala May 24, 2018

Is there a way to prevent a File Commit when the file contains specific configurable keywords?

1 answer

1 accepted

1 vote
Answer accepted
Bryan Robison
Contributor
May 24, 2018

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events