Releases: kodelint/git-selective-ignore
Releases · kodelint/git-selective-ignore
Release list
v0.2.0
Git Selective Ignore – v0.1.1 Initial Release
Overview
Git Selective Ignore is a Rust-based CLI tool that allows developers to automatically ignore sensitive, temporary, or environment-specific lines of code in Git repositories. It ensures that secret keys, debug statements, and temporary code never end up in Git history while keeping your workflow seamless.
Features
- Initialize a repository for selective ignore patterns (
git-selective-ignore init) - Add ignore patterns by file or globally (
--pattern-type line-regex, line-range, block-start-end) - Install Git hooks for automatic processing on commit (
git-selective-ignore install-hooks) - List all configured ignore patterns (
git-selective-ignore list) - Check repository for violations before committing (
git-selective-ignore status) - Automatically process and remove ignored content during commits while restoring workspace content
Benefits
- Keeps sensitive or temporary code out of Git history
- Supports multiple ignore pattern types (line regex, line ranges, block start/end)
- Works for specific files or globally across the repository
- Provides detailed status reports and summaries for easy verification
Usage
Typical workflow:
- Initialize repository for selective ignore
- Add ignore patterns for sensitive content
- Install Git hooks for automatic
pre-commitandpost-commitprocessing - Stage and commit files normally; ignored content will not appear in Git history
- See the Usage Guide for detailed examples.
Notes:
- Initial release. Feedback and contributions are welcome.
- Supports macOS platform; Rust 1.70+ recommended.