Because that's allowing it to potentially persist invalid, unsupervised changes to actual systems, and discourages you from reviewing changes properly.
I use pretooluse hook scripts to parse and block non-readonly commands for a range of important tools that have access to other systems, including git.
View all comments
Show parent comment
5
u/stormdelta Oct 15 '26
Because that's allowing it to potentially persist invalid, unsupervised changes to actual systems, and discourages you from reviewing changes properly.
I use pretooluse hook scripts to parse and block non-readonly commands for a range of important tools that have access to other systems, including git.