Crates.io | gash |
lib.rs | gash |
version | 0.10.1 |
source | src |
created_at | 2020-03-29 08:56:07.715267 |
updated_at | 2022-04-09 12:13:52.464732 |
description | Brute force your git hash! |
homepage | https://github.com/acheronfail/gash |
repository | https://github.com/acheronfail/gash |
max_upload_size | |
id | 224004 |
size | 91,859 |
Some questions:
git
?<your name> was here
forever into your git
history?If you answered yes to any of those questions, or if you just like what you see when you look in the mirror, then this tool is for you!
It makes your last commit contain a provided substring. It does this by patching the metadata of the commit, and brute forcing it until it finds a match!
For more detail, see the genius who thought of it first:
See the releases page for pre-compiled binaries. (If CI is working, I am tired of fighting with CI.)
cargo install gash
git clone https://github.com/acheronfail/gash/
cd gash
cargo install --path .
First and foremost, please see the help text:
gash --help
You can either run it via the command line:
cd path/to/your/git/repository
gash [options...]
Or, install it automatically as a git hook:
echo '#!/bin/bash\ngash [options...]' > .git/hooks/post-commit
chmod +x .git/hooks/post-commit
Most command line flags can be set in your git config, too (see gash --help
for a comprehensive list).
For example:
# Set the default prefix to "babe":
git config --global gash.default "babe"
# Use parallel mode by default:
git config --global gash.parallel "true"
# Now, this is equivalent to running: `gash --parallel "babe"`
gash