Quick Reference
bash
/merge-main # Merge default branch into current branch /merge-main --rebase # Rebase onto default branch /merge-main --no-auto-resolve # Skip auto conflict resolution
Workflow
- •Pre-check: Ensure working tree is clean and not on default branch
- •Fetch and merge:
git fetchthengit merge(orgit rebasewith-r) - •Conflict resolution: Auto-resolve conflicts unless
--no-auto-resolve- •If auto-resolution fails, ask user for guidance
- •Report: Summary of merged commits and resolved conflicts