Skip to content

Instantly share code, notes, and snippets.

@yaotti
Created February 25, 2010 12:45
Show Gist options
  • Save yaotti/314516 to your computer and use it in GitHub Desktop.
Save yaotti/314516 to your computer and use it in GitHub Desktop.
notify git-push had succeed or failure with growl
#!/bin/zsh
git push $@
if [ $? = 0 ]; then
growlnotify Succeed -a GitX -m 'successfully pushed'
else
growlnotify Fail -a CyberDuck -m 'git push failed'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment