You Don't Have a Git Problem. You Have a Context Problem.
说明与用途
Grit 自动管理 Git 身份,防止错误作者提交,提升开发者生产力。
问题
Developers frequently commit with the wrong Git identity, leading to audit risks, wasted time, and compliance issues.
结果
Grit eliminates manual identity switching, reduces audit risk, and restores developer focus on code.
工作流
- Detect repository context via .grit file, path pattern, or remote URL
- Load the corresponding profile (work, open-source, corporate)
- Set Git user.email and user.name for the session
- Configure SSH and GPG key routing for the profile
- Run pre-commit hook to verify identity before commit creation
- Commit normally; Grit ensures correct identity is applied
- Daemon runs in background on Windows, Linux, macOS to maintain state
证据
Grit remembers the profile for each repo and restores it when you return.
A Git hook applies and verifies the correct identity before the commit is created.
- 记录日期: 2026-09-06T17:21:33.337Z