Skip to content

Instantly share code, notes, and snippets.

@devopsmariocom
Last active February 22, 2017 12:33
Show Gist options
  • Save devopsmariocom/db32d5344cb758de378815c9b0c50563 to your computer and use it in GitHub Desktop.
Save devopsmariocom/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