# Installer lucky-commit avec Homebrew, MacPorts, Nix, pacman

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de lucky-commit pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:lucky-commit
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install lucky-commit
```

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install lucky-commit
```

  Preuve: MacPorts ports tree: devel/lucky-commit/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#lucky-commit
```

  Preuve: nixpkgs package indexes: pkgs/by-name/lu/lucky-commit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S lucky-commit
```

  Preuve: Arch Linux sync databases: lucky-commit from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## Faits du paquet

- **Clé du paquet:** brew:lucky-commit
- **Gestionnaire de paquets:** Homebrew
- **Page du gestionnaire de paquets:** <https://formulae.brew.sh/formula/lucky-commit>
- **Version:** 2.2.5
- **Résumé source:** Customize your git commit hashes!
- **Page d'accueil:** <https://github.com/not-an-aardvark/lucky-commit>
- **Dépôt:** <https://github.com/not-an-aardvark/lucky-commit>
- **Docs amont:** <https://github.com/not-an-aardvark/lucky-commit#readme>
- **Licence:** MIT
- **Archive source:** <https://github.com/not-an-aardvark/lucky-commit/archive/refs/tags/v2.2.5.tar.gz>
- **Généré:** 2026-07-08T18:08:21+00:00

## exécutables

- lucky_commit (cli)
- lucky_commit (alias)

## Dépendances de compilation

- rust

## Comportement d'installation

- hook post-installation: non défini
- Bouteille: disponible sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Version et fraîcheur

- page générée: 2026-07-08
- version du gestionnaire: 2.2.5
- données locales: OK
- dépôt amont: https://github.com/not-an-aardvark/lucky-commit
- dernière version détectée: v2.2.5 (à jour)
- info: No package-manager update timestamp was available.
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

- 2016: Public GitHub repository created.
- 2016 onward: Cargo installation documented as the primary upstream installation path.
- Later releases: Rust/OpenCL implementation became the maintained branch, with older Node.js, C, and pure-Rust branches kept as historical alternatives.
- Current packaging: Official README documents availability through Arch Linux, Funtoo, and Homebrew.

### Related projects

- The README points to `every-git-commit-shorthash` as a related project.
- The project depends conceptually on Git object hashing and, for acceleration, OpenCL-capable hardware.

### Sources

- <https://api.github.com/repos/not-an-aardvark/lucky-commit>
- <https://formulae.brew.sh/formula/lucky-commit>
- <https://github.com/not-an-aardvark/lucky-commit>


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- narrow executable package without higher-risk signals

## Détails de la base source

- **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:** stable

## Autres enregistrements de gestionnaires de paquets

- Nix - lucky-commit: normalized package name match | nixpkgs package indexes: pkgs/by-name/lu/lucky-commit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - lucky-commit - 2.2.5-1: normalized package name match | Arch Linux sync databases: lucky-commit from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Customize your git commit hashes | https://github.com/not-an-aardvark/lucky-commit
- MacPorts - lucky-commit: normalized package name match | MacPorts ports tree: devel/lucky-commit/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Liens liés

- [Source-control packages](https://www.automicvault.com/fr/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/fr/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/fr/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/fr/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [rust](https://www.automicvault.com/fr/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [commitizen](https://www.automicvault.com/fr/pkg/brew/commitizen/) - Shares av.db curated category or tags: cli, commits, developer-tools, git, version-control.
- [git-quick-stats](https://www.automicvault.com/fr/pkg/brew/git-quick-stats/) - Shares av.db curated category or tags: cli, commits, developer-tools, git, version-control.
- [gitnr](https://www.automicvault.com/fr/pkg/brew/gitnr/) - Shares av.db curated category or tags: cli, developer-tool, developer-tools, git, version-control.
- [gource](https://www.automicvault.com/fr/pkg/brew/gource/) - Shares av.db curated category or tags: cli, developer-tool, developer-tools, git, version-control.
- [grokmirror](https://www.automicvault.com/fr/pkg/brew/grokmirror/) - Shares av.db curated category or tags: cli, developer-tool, developer-tools, git, version-control.
- [karn](https://www.automicvault.com/fr/pkg/brew/karn/) - Shares av.db curated category or tags: cli, developer-tool, developer-tools, git, version-control.
- [ugit](https://www.automicvault.com/fr/pkg/brew/ugit/) - Shares av.db curated category or tags: cli, developer-tool, developer-tools, git, version-control.
- [aicommit](https://www.automicvault.com/fr/pkg/brew/aicommit/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [conventional-commits-detector](https://www.automicvault.com/fr/pkg/npm/conventional-commits-detector/) - Local package facts share a topical domain. Shared terms: cli, commit, commits, control, developer.
- [devmoji](https://www.automicvault.com/fr/pkg/npm/devmoji/) - Local package facts share a topical domain. Shared terms: cli, commit, commits, control, developer.

## Combined YAML source

View the package source record on GitHub. [combined/lucky-commit.yml](https://github.com/automic-vault/db/blob/main/combined/lucky-commit.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
