Last active
December 28, 2015 13:19
-
-
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"
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
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