Skip to content

Instantly share code, notes, and snippets.

@mirlord
Created August 1, 2010 19:24
Show Gist options
  • Save mirlord/503667 to your computer and use it in GitHub Desktop.
Save mirlord/503667 to your computer and use it in GitHub Desktop.
git "fast commit" without any meaningful comment (with fortune string instead)
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