Skip to main content

samba-pr-rebase

Rebase the current branch on the latest upstream changes, resolve conflicts, and push.

설치로 이동

소스 정보

저장소
criptogus/Samba-Builder
최근 소스 활동
2026년 9월 8일 15:30
감지된 SKILL.md 언어
영어
스타
1
포크
1

설치 방법

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

소스 파일 검토

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

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
samba:pr-rebase
description
Rebase the current branch on the latest upstream changes, resolve conflicts, and push.
# PR Rebase Rebase the current branch on the latest upstream changes, resolve conflicts, and push. ## Instructions 1. **Determine the git remote setup:** ``` git remote -v git branch -vv ``` In GitHub Actions for cross-repo PRs: - `origin` points to the **head repo** (fork) - this is where you push - `upstream` points to the **base repo** - this is what you rebase onto For same-repo PRs, `origin` points to the main repo and there may be no `upstream`. 2. **Fetch the latest changes:** ``` git fetch --all ``` 3. **Rebase onto the base branch:** Use `upstream/main` if the `upstream` remote exists (cross-repo PR), otherwise use `origin/main`: ``` # Check if upstream remote exists git remote get-url upstream 2>/dev/null && git rebase upstream/main || git rebase origin/main ``` 4. **If there are merge conflicts:** - Identify the conflicting files from the rebase output - Read each conflicting file and understand both versions of the changes - Resolve the conflicts by editing the files to combine changes appropriately - Stage the resolved files: ``` git add <resolved-file> ``` - Continue the rebase: ``` git rebase --continue ``` - Repeat until all conflicts are resolved and the rebase completes 5. **Run lint and push:** Run the `/samba:pr-push` skill to run lint checks, fix any issues, and push the rebased branch. 6. **Summarize the results:** - Report that the rebase was successful - List any conflicts that were resolved - Note any lint fixes that were applied - Confirm the branch has been pushed
GitHub에서 보기