A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/not-an-aardvark/lucky-commit/tree/nodejs below:

GitHub - not-an-aardvark/lucky-commit at nodejs

Make your git commits lucky!

With this simple command, you can change the start of your git commit hashes to whatever you want.

$ git log
1f6383a (HEAD -> master) Some commit
$ npm install -g lucky-commit
$ lucky-commit
$ git log
0000000 (HEAD -> master) Some commit

As a demonstration, see the latest commit in this repository.

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 log
1010101 (HEAD -> master) Some commit

On average, this requires the computation of 167 sha1 hashes, which takes about 20 minutes on my laptop.

¯\_(ツ)_/¯


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4