gitbrute(1)

gitbrute1

Brute-force a git commit hash to a given prefix

Usage

gitbrute -prefix deadbeef

Overview

gitbrute amends the top commit in a git repository, altering commit-time and author-time to have the commit's hash start with the given prefix.

Options

-prefix 000000

Specifies the hash prefix to search for. Obviously, the expected time required to find it grows exponentially with the prefix's length.

-force true

If the current commit already matches the prefix, it will be replaced by another one.

-cpus 64

Specifies the level of parallelism; defaults to number of online processors at startup.

Releases

Unchanged in 3 releases since Debian 11 (Bullseye).

  1. 11–13

From gitbrute 0~15-4 in Debian 13 (Trixie). Parsed by carta from the page's man source.