Skip to content

Instantly share code, notes, and snippets.

@gabehollombe
Created July 15, 2009 11:24
Show Gist options
  • Save gabehollombe/147653 to your computer and use it in GitHub Desktop.
Save gabehollombe/147653 to your computer and use it in GitHub Desktop.
#Put this inside ~/.bash_profile
#Function for lazy git commiting.
#Instead of: git commit -m "some message"
#Type: gci some message
gci() {
if [ -z "$1" ] # Is parameter #1 zero length?
then
echo "You must pass a commit message like this: gci some message here - which then becomes: git commit -m 'some message here'"
else
git commit -m "$*"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment