Random git commit message thanks to whatthecommit.com
Just for fun, but you can set up a git alias to commit random commit messages for you with the following:
git config --global alias.commit-rnd !"sh -c \"git commit -m '$(curl -s http://whatthecommit.com/index.txt)'\""
Your syntax may vary, as I am using gow on windows, which makes a lot of terminal things weird, but your git config file (git config --global -e) should have something like this appended to it.
[alias]
commit-rnd = !sh -c \"git commit -m '$(curl -s http://whatthecommit.com/index.txt)'\"
To use your new alias, type
git commit-rnd
whenever you want to make a commit with a random commit message.
**Please use at your discretion and do not blame your team-lead's tirade on me.
Thanks go out to whatthecommit.com, Jen Heilemann, and Andrew Tongen.
Written by Russell Dempsey
Related protips
2 Responses
Cool! Until http://whatthecommit.com/index.txt return something malicious like:
"` sudo rm -rf /` pawned!"
;)
over 1 year ago
·
Great alias, thank you !
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Config
Authors
Related Tags
#config
#alias
#command line
#commit
#git alias
#random
#git
#windows
#git config
#whatthecommit.com
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#