Skip to main content

rebase-on-main

Update main/master from origin, rebase current branch on it, resolve conflicts, and push.

소스 정보

저장소
doodledood/claude-code-plugins
최근 소스 활동
2026년 1월 11일 14:57
감지된 SKILL.md 언어
영어
스타
20
포크
3

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
rebase-on-main
description
Update main/master from origin, rebase current branch on it, resolve conflicts, and push.
Perform a rebase workflow for the current branch: ## Steps 1. **Identify the main branch**: Check if `main` or `master` exists as the default branch 2. **Save current branch name**: Store the current branch name for later 3. **Fetch latest from origin**: Run `git fetch origin` 4. **Update main/master locally**: Checkout main/master and pull latest changes 5. **Return to feature branch**: Checkout the original branch 6. **Rebase on main/master**: Run `git rebase main` (or master) 7. **Handle conflicts if any**: - If conflicts occur, analyze each conflicting file - Read the conflicting files to understand the context - Resolve conflicts intelligently by understanding both changes - Use `git add` to mark resolved files - Continue rebase with `git rebase --continue` - Repeat until all conflicts are resolved 8. **Push changes**: Force push with lease using `git push --force-with-lease` ## Important Guidelines - Always use `--force-with-lease` instead of `--force` for safety - When resolving conflicts, prefer keeping functionality from both sides when possible - If a conflict resolution is ambiguous, explain the choice made - Report a summary of what was done at the end (commits rebased, conflicts resolved, etc.)
GitHub에서 보기