GitLucky.any 0.2.0

dotnet add package GitLucky.any --version 0.2.0
                    
NuGet\Install-Package GitLucky.any -Version 0.2.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GitLucky.any" Version="0.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GitLucky.any" Version="0.2.0" />
                    
Directory.Packages.props
<PackageReference Include="GitLucky.any" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add GitLucky.any --version 0.2.0
                    
#r "nuget: GitLucky.any, 0.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package GitLucky.any@0.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=GitLucky.any&version=0.2.0
                    
Install as a Cake Addin
#tool nuget:?package=GitLucky.any&version=0.2.0
                    
Install as a Cake Tool

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.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.0 102 3/20/2026
0.1.1 95 3/20/2026