I keep on pushing w/o updating snapshots for Jest snapshot tests in a pipeline. This is probably annoying my co-workers during a merge request process (because the reviewers get an email every push to MR).
What I would like to do is interrupt the push with a simple prompt to self like so:
git push
Did you remember to update snapshots? [y/n]
And, then either continue with the push or cancel if no
.
I know I could make an alias with some other command name altogether, but I don't want to stop using git push
. I just want to interrupt it. Ideas?