Daily Workflows
Daily Git workflows, without drama
Stage hunks deliberately, reconcile your branch against upstream, and commit work you can explain six months later.
The two-minute morning ritual
- Open GCC and select your repo; press F5.
- Check Sync: report ahead/behind state to your lead if uncertain.
- Switch to the correct branch; GCC will warn about uncommitted changes.
- Scan Changes and group them by intent: bugfix, feature, docs, cleanup.
Stage hunks like a reviewer
Reviewers stage whole files; surgeons stage hunks. GCC’s Changes panel shows context lines around each hunk. If a hunk contains both a fix and formatting noise, split it: stage the fix, leave the formatter for a separate commit.
Write commits that survive audits
| Commit style | Good | Avoid |
|---|---|---|
| Subject | fix(api): clamp retry-after header to 300 seconds | updates |
| Body | Explain why the change is needed, not what the diff already says. | notes: fixed stuff |
| Scope | One logical concern per commit. | One commit mixing refactor, fix and dependency bump. |
Rebase vs merge: where GCC fits
GCC shows the graph first. If history is still local-only, rebase is usually the clean choice. If teammates pulled your branch already, merge or PR it instead. GCC will warn about public rewrites before you force anything.
Weekly team ritual: everyone pays for one "ticket archaeology" where they explain a commit GCC helped them write. It teaches the team that the tool amplifies clarity rather than replace it.