- Agents touch many repos per session- mini tasks, README chores, tangents, ideas
- Need fast checkpoints before/after agent runs- rollback when something gets nuked
cd+git add+commit+pushper repo = friction- One bad file (too large, submodule) blocks the whole checkpoint
gitty: stage → commit → alwaysgit push -f- Partial mode: hold back offenders; push everything else
- Any cwd- pass repo root or get prompted
- Logmoji: 🟡 in progress, 🟢 success, 🔴 failure
- Hook pass/fail dashboard when repo has
.hooks/
One chain: git add -A → hold back blockers → git commit → git push -f. Agent-heavy multi-repo checkpointing. npm tarball = bin/ + README only.
npm i -g @vd7/gitty| Bin | Purpose |
|---|---|
gitty |
add, partial holdback, commit, force push |
gittylfs |
same + LFS track/install |
gittyembedded |
recurse submodules, then parent |
gittyhealth |
repo health report only |
Details: docs/commands.md
gitty [commit_mssg] [root_dir]| Arg | Description |
|---|---|
commit_mssg |
Commit message- prompted if omitted; default .. |
root_dir |
Absolute repo root- prompted if omitted; default $PWD |
gitty "fix bug" /path/to/repo
gitty "checkpoint" $HOME/projects/other-repo
gitty "wip" # root = $PWD
gitty # prompts for bothWhen some paths cannot be pushed (oversized file, submodule pointer, remote rejection), gitty holds them back locally and commits/pushes the rest.
🟡 - Held back: assets/huge.bin (exceeds push size limit)
🟡 - 1 path(s) held back locally; proceeding with the rest
...
🟢 - Committed and force pushed (1 path(s) held back)
- Default on (
GITTY_PARTIAL=1) - Submodules → use
gittyembedded - Large binaries → use
gittylfsor fix paths manually
Full reference: docs/partial-commit.md
Always git push -f. Checkpoint workflow- overwrites remote branch. Use when you own the remote.
Nothing to commit → still force-pushes pending commits. Remote up to date → says so explicitly.
| Variable | Default | Effect |
|---|---|---|
GITTY_PARTIAL |
1 |
0 disables holdback |
GITTY_MAX_FILE_BYTES |
100 MiB | Pre-commit size gate |
README_CACHE_BUST |
- | 1 bumps README img ?v= |
More: docs/environment.md · Hooks: docs/hooks.md
| Doc | Topic |
|---|---|
docs/README.md |
Index |
docs/partial-commit.md |
Holdback logic |
docs/commands.md |
All bins |
| docs/environment.md | Env vars |
| docs/hooks.md | Repo hooks |
touch "$HOME/projects/example-repo/test.txt"
gitty "added test" "$HOME/projects/example-repo"🟡 - Staging changes in /Users/you/projects/example-repo...
🟡 - Committing changes...
[main abc1234] added test
🟡 - Force pushing to remote...
🟢 - Successfully committed and force pushed from /Users/you/projects/example-repo
