Loading...
Loading...
Merge the latest default branch (e.g. origin/main) into the current branch, resolve merge conflicts, and verify with pnpm lint && pnpm test. Merge-based sync (not rebase) unless the repo specifies otherwise. Use when syncing a feature branch with origin, after a non-fast-forward push, or when the branch is behind. Does not push or manage PRs—use push and create-pr-jp for those.
npx skill4agent add noblejasper/agent-skills pullorigin/mainpnpm lint && pnpm testoriginmainorigin/maingit pushorigingit config rerere.enabled truegit config rerere.autoupdate trueorigingit fetch origingit pull --ff-only origin "$(git branch --show-current)"maingit -c merge.conflictstyle=zdiff3 merge origin/maingit add <files>git commitgit merge --continuepnpm lint && pnpm testAGENTS.mdpnpm lint && pnpm testmaingit config rerere.enabled true
git config rerere.autoupdate true
git fetch origin
# Optional: sync remote feature branch commits first
git pull --ff-only origin "$(git branch --show-current)"
# Merge default branch (zdiff3 for conflict readability)
git -c merge.conflictstyle=zdiff3 merge origin/main
# After resolving conflicts:
# git add … && git commit # or git merge --continue
pnpm lint && pnpm testgit statusgit diffgit diff --mergegit diff :1:path :2:path:1::3:merge.conflictstyle=zdiff3<<<<<<<|||||||=======>>>>>>>pnpm lint && pnpm testgit diff --checkorigin/mainpnpm lint && pnpm testgit pull --ff-only origin <branch>origin/main| Situation | Action |
|---|---|
| Dirty working tree | Commit or stash before merge |
| Follow Conflict Resolution, then |
| Wrong default branch name | Use |
| Lint/test fails after merge | Fix or revert; do not push broken state—coordinate with push only after green checks |