gitkit-0.1.2 is not a library.
gitkit
Standalone CLI for configuring git repos — hooks, .gitignore, and .gitattributes. No Node.js, no Python, no runtime dependencies. One binary.
Installation
Quick install (recommended)
Linux / macOS:
|
Windows (PowerShell):
irm https://raw.githubusercontent.com/JheisonMB/gitkit/main/install.ps1 | iex
Via cargo
GitHub Releases
Check the Releases page for precompiled binaries (Linux x86_64, macOS x86_64/ARM64, Windows x86_64).
Uninstall
Quick Start
# Install a built-in hook
# Install a custom hook command
# List installed hooks
# Generate a .gitignore
# Apply line endings preset
Commands
| Command | Description |
|---|---|
gitkit hooks init <hook> <builtin|command> |
Install a hook (built-in or custom command) |
gitkit hooks list |
List installed hooks |
gitkit hooks remove <hook> |
Remove a hook |
gitkit hooks show <hook> |
Show hook content |
gitkit ignore add <templates> |
Generate .gitignore via gitignore.io |
gitkit ignore list [filter] |
List available templates |
gitkit attributes init |
Apply line endings preset |
gitkit config apply <preset> |
Apply git config preset (defaults, advanced, delta) |
Built-in Hooks
| Name | Hook | Description |
|---|---|---|
conventional-commits |
commit-msg |
Validates Conventional Commits format |
no-secrets |
pre-commit |
Detects common secret patterns |
branch-naming |
pre-commit |
Validates branch name pattern |
Global Flags
| Flag | Description |
|---|---|
--yes, -y |
Skip confirmation prompts |
--force, -f |
Overwrite existing files |
--dry-run |
Preview changes without applying |
Tech Stack
| Concern | Crate |
|---|---|
| CLI parsing | clap (derive) |
| Error handling | anyhow |
| HTTP client | ureq |
License
MIT