Skip to content

Instantly share code, notes, and snippets.

@jackrabb1t
Created October 27, 2011 12:38
Show Gist options
  • Save jackrabb1t/1319441 to your computer and use it in GitHub Desktop.
Save jackrabb1t/1319441 to your computer and use it in GitHub Desktop.
a simple script that will accept parameters and add them to a git commit message;
function gcm {
echo "Enter commit string:"
read cstr
cs=\""$cstr\""
echo $cs
echo "git commit -m `echo $cs`"
#`git commit -m `echo $cs``
`git commit -m $cs`
}
@jackrabb1t
Copy link
Author

currently, this does not work beyond a word in the comment; need to figure out how bash concatenates the words in a sentence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment