[tweakgit] prepush = 'npm test' Replace 'npm test' with your test command. TweakGit allows you to protect specific branches from accidental updates.