GitLucky 0.2.0
dotnet tool install --global GitLucky --version 0.2.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local GitLucky --version 0.2.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=GitLucky&version=0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package GitLucky --version 0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
GitLucky 🍀
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.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.