Give your commit hashes leading zeroes!
Inspired by Тsфdiиg's 𝕏 post
Requires gcc; ./hasher builds the local C helper hasher-helper when needed.
The helper uses all available CPU cores by default. Set HASHER_THREADS to cap it.
By default the prefix searched for is at least three leading zeroes 000
./hasher
Giving a valid lowercase hex string as the first option searches for that prefix
./hasher bada55
HASHER_THREADS=4 ./hasher 0000000
Updating hashes of every unpushed local commit
git rebase --exec './hasher 000' origin/master
- arg to give desired prefix instead of just current hard coded
000 - speed it up using
git commit-treeinstead ofgit commit --amend - speed it up by running spinner in parallel