Skip to content

Instantly share code, notes, and snippets.

@elmariofredo
Last active February 22, 2017 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elmariofredo/db32d5344cb758de378815c9b0c50563 to your computer and use it in GitHub Desktop.
Save elmariofredo/db32d5344cb758de378815c9b0c50563 to your computer and use it in GitHub Desktop.
Auto add no verify to git push and commit
#!/bin/bash
if [[ $@ == *"push"* || $@ == *"commit"* ]];
then
$HOME/.nix-profile/bin/git $@ --no-verify
else
$HOME/.nix-profile/bin/git $@
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment