brute-force a git commit hash
Go
Switch branches/tags
Nothing to show
Clone or download
bradfitz Merge pull request #9 from JonathanGawrych/patch-1
Allow brute forcing empty commits
Latest commit 16d0dee Jul 18, 2018
Permalink
Failed to load latest commit information.
.gitignore gitbrute initial commit. Apr 6, 2014
README Usage. Nov 9, 2014
gitbrute.go Allow brute forcing empty commits Jul 18, 2018

README

gitbrute brute-forces a pair of author+committer timestamps such that
the resulting git commit has your desired prefix.

It will find the most recent time that satisfies your prefix.

Shorter prefixes match more quickly, of course. The author &
committer timestamp are not kept in sync.

Example: https://github.com/bradfitz/deadbeef

Usage:

    go run gitbrute.go --prefix 000000

This amends the last commit of the current repository.