Hacker News new | ask | show | jobs
by frakturfreund 4795 days ago
For your ~/.gitconfig:

  wtc = !git commit -m \"$(curl -s http://whatthecommit.com/index.txt)\"
1 comments

what should happen? does it need to go in a specific "section" of the .gitconfig?
Yes, i forgot, it has to go into the [alias] section of .gitconfig.

It create a commit with a random message from whatthecommit.com; nothing you would push to your public repository; i use it in a script to backup some stuff in a git repo.