- New /pull command: pulls main and updates submodules locally - sync-branch: never pushes automatically, asks user first - No pushing to submodules; all changes land via PRs
581 B
581 B
Pull
Pull latest main and update all submodules to their latest remote main. No commits, no pushes.
Steps
git pull origin main- For each submodule (ghostty, homebrew-cmux, vendor/bonsplit):
cd <submodule>git fetch origin- Check if behind:
git rev-list HEAD..origin/main --count - If behind, merge:
git merge origin/main --no-edit - Do NOT push. We only land submodule changes via PRs.
- Go back to repo root
git submodule update --init --recursive- Report: current commit, which submodules were updated and by how many commits