SentinelGit is a high-performance, terminal-based Git client designed to elevate the development workflow through proactive security, granular history management, and intelligent context awareness. Unlike traditional Git clients that act merely as wrappers around Git commands, SentinelGit actively guards your codebase and enhances your decision-making process.
SentinelGit integrates a real-time security engine that scans files before they enter your staging area.
- Secret Detection: Automatically identifies and blocks potential secrets (AWS keys, private keys, etc.).
- Binary Blocker: Prevents accidental staging of binary files.
- Proactive Defense: Staging is blocked at the source if a threat is detected.
Chronos provides a safety net beyond standard Git commits.
- Background Watcher: A lightweight daemon monitors your workspace for changes in real-time.
- Ghost Branches: Every modification is automatically compressed and saved.
- Time Travel: Press
tto open the Time Machine modal and restore your entire project to any previous state, even if you never committed it. - File History: Press
hto see the revision history of a specific file and restore it individually.
SentinelGit enforces and simplifies Conventional Commits.
- Interactive Wizard: Press
cto open a multi-step wizard that guides you through type, scope, summary, and description. - Automated Formatting: Generates standardized commit messages (e.g.,
feat(ui): add new button).
Review and stage changes with precision.
- Hunk Selection: Press
dto view a file's diff. UseUp/Downto navigate individual changes (hunks). - Partial Staging: Press
sto stage only the selected hunk, allowing for atomic commits. - Syntax Highlighting: clear, color-coded diffs.
- Zen Mode: Press
zto remove all distractions and focus on your code. - Impact Score: Calculates the cognitive load and risk of your changes.
| Key | Action |
|---|---|
↑ / ↓ |
Navigate file list |
Space |
Stage/Unstage file (triggers Sentinel checks) |
d |
Diff View: Interactive staging (Hunk selection) |
c |
Commit: Open Conventional Commits Wizard |
h |
History: View/Restore file snapshots |
t |
Time Machine: Restore project to previous state |
z |
Toggle Zen Mode |
? |
Show Help / Keyboard Shortcuts |
q |
Quit |
Esc |
Close Modal / Cancel |
Ensure you have Rust and Cargo installed.
Run the installation script to build and install sg to your local bin directory:
./install.shRestart your terminal, then run:
sgcargo build --release
./target/release/sentinel-gitSentinelGit uses a .sgit.toml file for configuration. You can customize:
- Sentinel Rules: Define custom regex patterns for secrets.
- Ignored Files: Manage binary extensions to block.
- Chronos Settings: Adjust snapshot frequency and retention.
Contributions are welcome! Please read our CONTRIBUTING.md (coming soon) for details on our code of conduct, and the process for submitting pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.