Skip to content

Instantly share code, notes, and snippets.

@mikeerickson
Last active December 28, 2015 13:19
Show Gist options
  • Save mikeerickson/7506752 to your computer and use it in GitHub Desktop.
Save mikeerickson/7506752 to your computer and use it in GitHub Desktop.
Simple bash function to shorten git commit calls (using 'gu' as function call) $ gu --- uses default message 'Code Update' $gu "Custom Message"
gu () {
if [ -z "$1" ]; then msg="code update"; else msg=$1; fi
git add . -A && git commit -m "$msg" && git push
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment