git agent guide
Purpose
This folder stores canonical global Git support files safe to share across machines.
Read first
- For repo-wide context, read
../AGENTS.md. sync.toml.gitleaks.tomlhooks/pre-commit
Managed scope
Managed files:
- global gitleaks config
- global pre-commit hook
- repo-local secret-scan helper script and CI workflow live outside this folder but use this config
Import
- Import only managed files.
- Do not import
~/.gitconfig; kept outside repo on purpose. - Treat
~/.config/git/ignoreas local artifact unless user explicitly wants it backed up here.
Apply
- Apply
.gitleaks.tomlto~/.config/git/.gitleaks.tomlby copy or link. - Apply
hooks/pre-commitinto real~/.config/git/hooks/dir by copy or link. - Keep
git config --global core.hooksPath ~/.config/git/hookspointed at managed hook dir.
Exclusions
Unmanaged live paths include ignore and future local-only files under ~/.config/git/ that are not declared in sync.toml.
Verify
~/.config/git/.gitleaks.tomlexists.~/.config/git/hooks/pre-commitexists and is executable.git config --global core.hooksPathmatches~/.config/git/hooks.- Run
pytest.