lucky-commit
Make your git commits lucky!
What?
With this simple command, you can change the start of your git commit hashes to whatever you want.
$ git log1f6383a Some commit$ npm install -g lucky-commit$ lucky-commit$ git log0000000 Some commit
As a demonstration, see the latest commit in this repository.
How?
lucky-commit amends your commit messages by adding a few characters of various types of whitespace to the end, and keeps hashing new messages until it gets the right value. By default, it will keep searching until it finds a hash starting with "0000000", but this can be changed by simply passing the desired hash as a parameter.
$ lucky-commit 1010101$ git log1010101 Some commit
On average, this requires the computation of 167 sha1 hashes, which takes about 20 minutes on my laptop.
Why?
¯\_(ツ)_/¯