Warn before commit code with special keyword

Marcin Pilarski 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
TAGS
AUG Leaders

Atlassian Community Events