macOS
brew install lucky-commitlocal Homebrew formula metadata
sudo port install lucky-commitMacPorts ports tree · devel/lucky-commit/Portfile · 来源: api.github.com
安装
brew install lucky-commitlocal Homebrew formula metadata
sudo port install lucky-commitMacPorts ports tree · devel/lucky-commit/Portfile · 来源: api.github.com
nix profile install nixpkgs#lucky-commitnixpkgs package indexes · pkgs/by-name/lu/lucky-commit/package.nix · 来源: api.github.com
sudo pacman -S lucky-commitArch Linux sync databases · lucky-commit · 来源: geo.mirror.pkgbuild.com
概览
Customize your git commit hashes!
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
lucky_commit | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/not-an-aardvark/lucky-commit
安装元数据
| 软件包键 | brew:lucky-commit |
|---|---|
| 版本 | 2.2.5 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/lucky-commit |
| 主页 | https://github.com/not-an-aardvark/lucky-commit |
| 仓库 | https://github.com/not-an-aardvark/lucky-commit |
| 上游文档 | https://github.com/not-an-aardvark/lucky-commit#readme |
| 许可证 | MIT |
| 源码归档 | https://github.com/not-an-aardvark/lucky-commit/archive/refs/tags/v2.2.5.tar.gz |
| 构建依赖 | rust |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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-commit来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.