Skip to content

FG-TUM/whatthecommit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

whatthecommit

An unoffical command client to fetch a random and silly commit message from whatthecommit.com.

For the sources of whatthecommit.com see https://github.com/ngerakines/commitment

FAQ

Is it useful?

Yeah, sure, I mean it's perfect for those cases where you haven't committed a change in ages and feel too important to use git add -i, so git commit -am "$(whatthecommit)" to the rescue 😉

How do I install it?

To get up and running as fast as possbile run

# installs to /usr/local/bin/whatthecommit
curl -L https://github.com/lwe/whatthecommit/raw/master/whatthecommit >/usr/local/bin/whatthecommit
chmod 0755 /usr/local/bin/whatthecommit

Are there any options?

Sure, check whatthecommit -h for usage and options.

Do I need this? / Alternatives

No, whatthecommit.com provides since some time a plain text interface at http://whatthecommit.com/index.txt - so a good alternative would be to create something like:

# .bashrc / .zshrc or whatever
function whatthecommit() {
  curl --silent --fail http://whatthecommit.com/index.txt
}

...or how about a git alias?

# From https://github.com/ngerakines/commitment/issues/69#issuecomment-91053061
git config --global alias.yolo '!git add -A && git commit -m "$(curl --silent --fail http://whatthecommit.com/index.txt)"'

Thanks to m13253 for the index.txt trick.

About

Unoffical command line client for https://whatthecommit.com

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%