How t1ckpublic/gitauto works
gitAuto is a Windows-oriented C CLI that maps intent-based commands onto Git workflows; the principal path is user command → CLI dispatch → workflow command → Git repository/remote. The README documents sync, watch, repository setup, branch operations, stash/rollback, ignore management, and diagnostics. Shared configuration and Git execution support these features. Several feature sources are unsampled, so their documented capabilities are represented without asserting internal call sequences; the sampled push, branch, backup, restore, doctor, and ignore sources support the shown Git interactions.
Main entry points: gitauto.c Command dispatch · common.c Git and config helpers · push.c Smart push · watch.c Watch and sync
Components 27
CLI entry
- Command dispatch
src/gitauto.c
Sync workflows
- Smart push
src/feature/push.c - Smart pull
src/feature/pull.c - Bidirectional sync
src/feature/sync.c - Watch and sync
src/feature/watch.c
Repository operations
- Repository init
src/feature/init.c - Clone repository
src/feature/clone.c - Bind remote
src/feature/link.c - Branch overview
src/feature/branch.c - Branch checkout
src/feature/checkout.c - Open remote
src/feature/open.c
Work state and safety
- Backup snapshots
src/feature/backup.c - Save work
src/feature/save.c - Restore work
src/feature/restore.c - Clean untracked
src/feature/clean.c - Undo commits
src/feature/undo.c - Reset history
src/feature/reset.c - Amend commit
src/feature/amend.c - Repository diagnosis
src/feature/doctor.c - Ignore rules
src/feature/ignore.c
Shared runtime
- SSH key setup
src/feature/sshagent.c - Git and config helpers
src/feature/common.c - Environment helper
src/utils/env.c
Other components
- Developer
- Git repository and remote
- Web browser
- Working-tree files
Connections 48
- Developer → Command dispatch: runs command
- Command dispatch → Smart push: dispatches
- Command dispatch → Smart pull: dispatches
- Command dispatch → Bidirectional sync: dispatches
- Command dispatch → Watch and sync: dispatches
- Command dispatch → Repository init: dispatches
- Command dispatch → Clone repository: dispatches
- Command dispatch → Bind remote: dispatches
- Command dispatch → Branch overview: dispatches
- Command dispatch → Branch checkout: dispatches
- Command dispatch → Open remote: dispatches
- Command dispatch → Backup snapshots: dispatches
- Command dispatch → Save work: dispatches
- Command dispatch → Restore work: dispatches
- Command dispatch → Clean untracked: dispatches
- Command dispatch → Undo commits: dispatches
- Command dispatch → Reset history: dispatches
- Command dispatch → Amend commit: dispatches
- Command dispatch → Repository diagnosis: dispatches
- Command dispatch → Ignore rules: dispatches
- Smart push → SSH key setup: ensures keys
- Smart push → Git repository and remote: runs Git operations
- Smart pull → Git repository and remote: runs Git operations
- Bidirectional sync → Git repository and remote: synchronizes
- Watch and sync → Git repository and remote: auto-syncs
- Watch and sync → Working-tree files: watches changes
- Repository init → Git repository and remote: initializes and pushes
- Clone repository → Git repository and remote: clones
- Bind remote → Git repository and remote: sets remote
- Branch overview → Git repository and remote: fetches and inspects
- Branch checkout → Git repository and remote: switches branch
- Open remote → Git repository and remote: reads remote
- Open remote → Web browser: opens repository
- Backup snapshots → Git repository and remote: snapshots and restores
- Save work → Git repository and remote: stashes changes
- Restore work → Git repository and remote: lists or applies stash
- Clean untracked → Git repository and remote: cleans files
- Undo commits → Git repository and remote: resets commits
- Reset history → Git repository and remote: resets history
- Amend commit → Git repository and remote: amends commit
- Repository diagnosis → Git repository and remote: checks and repairs
- Ignore rules → Working-tree files: edits ignore rules
- Smart push → Git and config helpers: loads shared config
- Branch overview → Git and config helpers: loads shared config
- Repository diagnosis → Git and config helpers: loads shared config
- Restore work → Git and config helpers: loads shared config
- Git and config helpers → Git repository and remote: runs Git commands
- SSH key setup → Environment helper: sets environment