Created
July 25, 2017 17:01
-
-
Save vitalymak/16509dfcf1f753382ee9777cda60be3a to your computer and use it in GitHub Desktop.
Git push without pre-push hook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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