Prompt file imported from coder-2011/no-circles (
.codex/prompts/linear-sync-master-dev.md). Copyright stays with the author.
Linearly sync master with dev so master exactly matches dev commits with no merge commit.
Context:
masteris the production branch connected to Vercel.- Goal: append
devcommits linearly on top ofmasterand movemastertodevtip.
Workflow:
- Confirm current state first:
git branch --show-currentgit status --short
- Rebase
devontomaster:git checkout devgit rebase master
- If any rebase conflict occurs:
- Pause immediately.
- Show conflicted files.
- Ask for manual resolution before continuing.
- Fast-forward
mastertodev:git checkout mastergit merge dev --ff-only
- Push
masterto remote:git push origin master --force-with-lease
Expected shell commands:
git checkout dev
git rebase master
git checkout master
git merge dev --ff-only
git push origin master --force-with-lease
Return:
- Rebase result (success or conflict details)
- Final
masteranddevcommit SHAs - Push result/ref update