Show HN: Vanity Git commit hash generator (git.anna.lgbt)
Hi HN!
This is just a fun little tool I made after I got nerdsniped by noticing that one of my commits naturally started with "fae". I thought that was cute, so I looked up existing tools that make vanity commit hashes, but none of them seemed great to me (and none supporting signing commits).
I learned a fair deal about how git actually stores commits while making this, and I think I came up with a novel way to generate a vanity hash: adding an extra header to the commit file.
This was just a quick project to satisfy my curiosity, but I thought you all might find it neat. Notice that all the commits in that repo start with "fae0"!
- Anna
3 comments
[ 9.2 ms ] story [ 19.2 ms ] threadHowever, actually having the commits start out with the same letters is problematic and confusing when e.g. specifying commit hashes on the command-line
The one I knew about ( https://github.com/tochev/git-vanity ) uses OpenCL and FWIW does claim to support signing: https://github.com/tochev/git-vanity#does-it-work-with-gpg-s...
A similar one also used the same technique you did: https://github.com/prasmussen/git-vanity-hash#how-it-works Great minds think alike!