- Jules: works on a feature branch (e.g.
dev/jules-*) - Teammate: works on
main, reviews and squash merges PRs
- Sync before working: merge
maininto your branchgit fetch origin git checkout dev/jules-<branch> git merge origin/main # resolve any conflicts here, on YOUR branch
- Do your work: make commits on your branch
- Push and open a PR to
main - Teammate squash merges the PR into
main - After squash merge: sync again before starting new work
git fetch origin git merge origin/main
- Always merge
maininto your branch — never the other way around - Resolve conflicts on your branch so
mainstays clean - After a squash merge, your old commits still exist on your branch but
mainhas one squashed commit — this is expected - Always sync with
mainbefore starting new work to avoid stale conflicts