question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add to commit-msg hook as prank

See original GitHub issue

This makes a decent prank. By sticking something like:

curl -s https://raw.github.com/ngerakines/commitment/master/commit_messages.txt | shuf -n1 > "$1" | sed s/XUPPERNAMEX/PERSONSNAME/g

in the .git/hooks/commit-msg hook file and making it executable. Maybe add a commit-msg.sample file to the repo w/ something like this? It can be made more cross platform by using sort -R | head -n1 or similar instead of GNU shuf.

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ylogxcommented, Jul 12, 2015

I use:

git config --global alias.yolo '!git commit -m "$(curl -s whatthecommit.com/index.txt)"'
0reactions
ngerakinescommented, Jul 12, 2015

What I suggest is that someone forks the project and adds this information to the README.

Read more comments on GitHub >

github_iconTop Results From Across the Web

commit-msg Hook - gerrit-review
commit -msg - Edit commit messages to insert a Change-Id tag. DESCRIPTION. A Git hook automatically invoked by git commit , and most...
Read more >
Ignoring merge commits for prepare-commit-msg git hook
As the document of prepare-commit-msg says,. It takes one to three parameters. The first is the name of the file that contains the...
Read more >
Automatically Prefixing Git Commit Messages with an Issue ...
We're going to utilise a Git hook to check a branch name and automatically prefix commit messages with the current issue number.
Read more >
Learn to create a Git hook custom script | commit-msg hook
In this video I am sharing what are git hooks, how to create a hook and run a custom script on git commit...
Read more >
10 Spam Text Message Examples (& How to Identify Them)
Criminals use phishing text messages to attain usernames and passwords, social security numbers, credit card numbers and PINs to commit ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found