macOS
brew install lucky-commitlocal Homebrew formula metadata
sudo port install lucky-commitMacPorts ports tree · devel/lucky-commit/Portfile · source: api.github.com
brew
Customize your git commit hashes! Version 2.2.5 via Homebrew; verified from local package data.
install
brew install lucky-commitlocal Homebrew formula metadata
sudo port install lucky-commitMacPorts ports tree · devel/lucky-commit/Portfile · source: api.github.com
nix profile install nixpkgs#lucky-commitnixpkgs package indexes · pkgs/by-name/lu/lucky-commit/package.nix · source: api.github.com
sudo pacman -S lucky-commitArch Linux sync databases · lucky-commit · source: geo.mirror.pkgbuild.com
overview
Customize your git commit hashes!
history
lucky-commit is a small Rust command-line tool for rewriting the current Git commit so that its object hash begins with a chosen prefix, defaulting to a run of zeroes.
The project was made public on GitHub in February 2016. Its README explains the core trick: amend the commit message by appending harmless whitespace, retrying messages until Git computes a hash with the requested prefix. The current implementation is Rust-based and can use OpenCL for GPU-accelerated searching, while older branches preserve earlier Node.js, C, and pure-Rust implementations.
The tool spread as a programmer curiosity rather than infrastructure. Official installation notes mention Cargo, Arch Linux, Funtoo, and Homebrew packaging, and the repository has roughly two thousand GitHub stars, which is notable for a deliberately niche Git-hash novelty.
Users run `lucky_commit` after creating a commit; the command amends the commit until the short hash matches a prefix such as `0000000` or a user-supplied pattern with wildcard placeholders. The README also documents benchmarking and behavior for GPG-signed commits and Git SHA-256 repositories.
For package and Git nerds, lucky-commit is a compact demonstration that commit IDs are content-addressed objects but still manipulable by changing semantically inert data. Its Homebrew formula gives macOS users an easy way to install a tool that is mostly useful for demos, badges, jokes, and understanding Git object hashing.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
lucky_commit | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/not-an-aardvark/lucky-commit
install metadata
| Package key | brew:lucky-commit |
|---|---|
| Version | 2.2.5 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/lucky-commit |
| Homepage | https://github.com/not-an-aardvark/lucky-commit |
| Repository | https://github.com/not-an-aardvark/lucky-commit |
| Upstream docs | https://github.com/not-an-aardvark/lucky-commit#readme |
| License | MIT |
| Source archive | https://github.com/not-an-aardvark/lucky-commit/archive/refs/tags/v2.2.5.tar.gz |
| Build dependencies | rust |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | lucky-commit |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
lucky-commit
nix profile install nixpkgs#lucky-commitlucky-commit 2.2.5-1
Customize your git commit hashes
https://github.com/not-an-aardvark/lucky-commit
sudo pacman -S lucky-commitlucky-commit
sudo port install lucky-commitsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.