diff --git a/config/zshrc b/config/zshrc index 3ef2ffd..4c33335 100644 --- a/config/zshrc +++ b/config/zshrc @@ -156,7 +156,8 @@ pastefinish() { # aliases function gcamp(){ if ! [ -z $1 ]; then - git commit -am $1 && git push + # trying to commit a second time if the first time failed and was auto-fixed by pre-commit + (git commit -am $1 || git commit -am $1) && git push fi } function ff(){