Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Warn before commit code with special keyword

Marcin Pilarski
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 17, 2019

is there a way to setup Sourcetree so that it will warn me if i'll try to commit/stage code with special, custom keyword like NOCOMMIT?

Code example:


var someVar = 1; // NOCOMMIT


if I try to commit this code fragment, I would like to get warn in Sourcetree - "Hey do you really want to commit this change?"

0 answers

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events