Add to commit-msg hook as prank
See original GitHub issueThis 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:
- Created 10 years ago
- Comments:5 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I use:
What I suggest is that someone forks the project and adds this information to the README.