Skip to main content
Any Framework

Package Description

Published
Mar 20, 2026
7mo ago
Total Downloads
645
645

Install

dotnet add package GitLucky.osx-x64 --version 0.2.0

No framework information available.

README

GitLucky 🍀

GitLucky NuGet version GitLucky NuGet download count

Amends the last git commit to have the desired SHA-1 prefix.

This is done by searching for negative deltas to the author and commit timestamps such that the resulting commit hash starts with a given prefix. The longer the prefix, the more time it will take to find a match.

Installation

Install as a global tool on your computer with:

$ dotnet tool install -g GitLucky

Usage

gitlucky <prefix>

Where <prefix> is the desired commit SHA prefix, in hex.

Example

$ git log --oneline -1
cd1e69a (HEAD -> master) Most recent commit

$ gitlucky 123456
128,161,098 hashes in 27,286 ms (4,696,812/sec)
Match found

$ git log --oneline -1
1234560 (HEAD -> master) Most recent commit

Disclaimer

This is just for fun. Use it at your own risk.

Changes from Previous Version

No structural changes between v0.1.1 and v0.2.0.

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.