Created
October 27, 2011 12:38
-
-
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;
This file contains hidden or 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
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` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
currently, this does not work beyond a word in the comment; need to figure out how bash concatenates the words in a sentence.