Skip to content

Instantly share code, notes, and snippets.

@vitalymak
Created July 25, 2017 17:01
Show Gist options
  • Save vitalymak/16509dfcf1f753382ee9777cda60be3a to your computer and use it in GitHub Desktop.
Save vitalymak/16509dfcf1f753382ee9777cda60be3a to your computer and use it in GitHub Desktop.
Git push without pre-push hook
function evalprint {
printf "\e[0;92m%s\n\n\e[0m" "$@"
eval "$@"
}
function gp {
local args=$(echo "$@")
evalprint "git push --no-verify $args; git status;"
}
__git_complete gp _git_push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment