Skip to content

Instantly share code, notes, and snippets.

@altamic
Created August 27, 2010 20:32
Show Gist options
  • Save altamic/554147 to your computer and use it in GitHub Desktop.
Save altamic/554147 to your computer and use it in GitHub Desktop.
function compush {
MSG="update"
if [ "$1" = "-m" ] ; then
MSG="$2"
shift
shift
fi
FLAGS=""
if [ "$#" = 0 ] ; then
FLAGS="-a"
fi
git commit $FLAGS -m "$MSG" "$@"
git push origin master
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment