efcnea
Last Updated: February 25, 2016
·
4.198K
· sgtpooki
460ac4485bc537b5c13269fa12874476

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.

Say Thanks
Respond

2 Responses
Add your response

17268
7c3c15142fcfe3e25ce2fae6b1912bcc

Cool! Until http://whatthecommit.com/index.txt return something malicious like:

"` sudo rm -rf /` pawned!"

;)

over 1 year ago ·
21133
Iqicxe2p normal

Great alias, thank you !

over 1 year ago ·
Filed Under

Awesome Job

E4857be2 008e 11e8 8271 f03109811178
Software Engineer
·
San Francisco Bay Area (San Carlos)
·
Full Time