GitKat CLI (Rust binary)
Project description
𝔾𝚒𝚝𝕂𝚊𝚝 ⫷⫸
𝔾𝚒𝚝𝕂𝚊𝚝 ⫷⫸ (GitKat) is a Rust toolkit for managing Git repositories in bulk. It ships a single CLI, gk, that mirrors the legacy shell scripts while adding a packaged, testable workflow.
Install
# crates.io
cargo install gitkat
# Homebrew (tap this repo)
brew install Aureuma/gitkat/gitkat
# npm
npm install -g @aureuma/gitkat
# pip (Python wrapper downloads the Rust binary)
python -m pip install gitkat
# local builds
cargo build --release
./target/release/gk --help
The pip/npm wrappers download the Rust binary from GitHub Releases on first run. Set GITKAT_RELEASE_BASE to override the download base URL.
Quick start
gk check "Example Name"
gk report .
gk push
gk rewrite -m olddomain.com:newdomain.com --ignore-case --preserve-case
gk github-emails --token YOUR_GITHUB_TOKEN
Commands
gk check <name>: search author and committer names across repos in the current directory.gk report [path]: list unique author emails for each repo under a path.gk push: force-push the current branch of each repo in the current directory.gk rewrite: rewrite identity metadata and/or blob contents using a Rust gitoxide (gix) rewriter.gk github-emails --token <token>: find contribution emails across GitHub repos you can access.gk verify-rewrite: compare rewrite output againstgit-filter-repoacross real repositories.
Rewrite notes
gk rewrite preserves the existing behavior of rewrite.sh, including case-aware blob mapping and commit metadata rewrites. The rewrite engine is implemented directly in Rust using gitoxide (gix).
Examples:
# Identity rewrite
gk rewrite -n "New Name" -e "new@example.test" -o "old@example.test"
# Blob rewrite with preserved casing and case-insensitive matching
gk rewrite -m foo:bar --ignore-case --preserve-case
# Regex blob rewrite
gk rewrite -m "token_[0-9]+:REDACTED" --regex
# Exclude files from blob rewrites
gk rewrite -m token:REDACTED -x "data/*.csv" -x "vendor/*"
# Rename file paths using the same mappings
gk rewrite -m oldname:newname --rename-files
# Delete a file or glob across history
gk rewrite --delete-path "path/to/file.txt"
gk rewrite --delete-path "assets/**/*.png"
Delete paths accept glob patterns and log each removed file in the colored rewrite output.
Development
cargo test --workspace
cargo run -p gitkat -- --help
gk verify-rewrite --ci --with-blob
mdbook build
gk verify-rewrite compares against git-filter-repo, so install it if you want equivalence checks.
License
MIT License. See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gitkat-0.5.2.tar.gz.
File metadata
- Download URL: gitkat-0.5.2.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73338dff1a3a20330e042345fb3f547e416befbe7fc7d83979420a3401b0e8a8
|
|
| MD5 |
438f7f9384eee658b9822643f75e4209
|
|
| BLAKE2b-256 |
3c87ebfe0901ead25663a7a919a507221e519e3f3ef7e7576c8b5c2c5a47bd71
|
Provenance
The following attestation bundles were made for gitkat-0.5.2.tar.gz:
Publisher:
release.yml on Aureuma/GitKat
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gitkat-0.5.2.tar.gz -
Subject digest:
73338dff1a3a20330e042345fb3f547e416befbe7fc7d83979420a3401b0e8a8 - Sigstore transparency entry: 776264070
- Sigstore integration time:
-
Permalink:
Aureuma/GitKat@ecfa6fded74e05d308161827a3a3c1c8022b829b -
Branch / Tag:
refs/tags/v0.5.2 - Owner: https://github.com/Aureuma
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ecfa6fded74e05d308161827a3a3c1c8022b829b -
Trigger Event:
release
-
Statement type:
File details
Details for the file gitkat-0.5.2-py3-none-any.whl.
File metadata
- Download URL: gitkat-0.5.2-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86a13900f4c0b98b24628123e8c499161eb0c1c51363f0e11bcb65518f1ea6e3
|
|
| MD5 |
46729042cbb9dcd6340b12a653414451
|
|
| BLAKE2b-256 |
331d6f35c60ce918343cd7afd23b3f0eab9eea41fd6cce4c37ae90bbf3686212
|
Provenance
The following attestation bundles were made for gitkat-0.5.2-py3-none-any.whl:
Publisher:
release.yml on Aureuma/GitKat
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gitkat-0.5.2-py3-none-any.whl -
Subject digest:
86a13900f4c0b98b24628123e8c499161eb0c1c51363f0e11bcb65518f1ea6e3 - Sigstore transparency entry: 776264080
- Sigstore integration time:
-
Permalink:
Aureuma/GitKat@ecfa6fded74e05d308161827a3a3c1c8022b829b -
Branch / Tag:
refs/tags/v0.5.2 - Owner: https://github.com/Aureuma
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ecfa6fded74e05d308161827a3a3c1c8022b829b -
Trigger Event:
release
-
Statement type: