public
Last active

  • Download Gist
gcm.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
# doesn't work:
 
gcm() {
git commit -m "$@"
}
 
# supposed to be used like:
 
gcm fixed issue 113
 
# which should execute:
 
git commit -m "fixed issue 113"
 
# in double quotes so i can use single quotes
# inside the message! like:
 
gcm what's this s***?

kinda evil, but this seems to work:

gcm() {
  eval "git commit -m \"$@\""
}

single quotes need to be escaped though:

$ gcm who\'s responsible for this?

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.