Created
August 1, 2010 19:24
-
-
Save mirlord/503667 to your computer and use it in GitHub Desktop.
git "fast commit" without any meaningful comment (with fortune string instead)
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
if [ $(which fortune) ]; then | |
_msg=$(fortune -s -n 78) | |
else | |
cat >&2 << EOM | |
You have no fortune installed on your system, | |
the default commit message will be used. | |
EOM | |
_msg="T[w]o be[er] or not t[w]o be[er]" | |
fi | |
git commit -a -m "${_msg}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment