원클릭으로
rebase
Rebase current work branch on latest main with intelligent conflict resolution.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Rebase current work branch on latest main with intelligent conflict resolution.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Enforce file/function/line-length standards on any project (Python, Rust, Go, TypeScript).
Generate agent-friendly ARCHITECTURE.md index and per-directory README.md files for any codebase.
Evidence-gated debugging and investigation. Requires citing file:line references and actual output before proposing fixes.
Infrastructure as Code expertise using Terraform for major cloud providers (AWS, Azure, GCP).
Checkout main branch and pull latest changes from remote.
Verify main branch stability before development and before pushing code to remote.
| name | rebase |
| description | Rebase current work branch on latest main with intelligent conflict resolution. |
| inputs | {} |
| outputs | {"status":"string","conflicts_resolved":"array"} |
| dependencies | ["git"] |
| safety | Modifies branch history; uses --force-with-lease for safer force push. |
| steps | ["Store current branch name","Checkout main and pull latest","Return to work branch","Rebase on main","Resolve conflicts automatically with transparency","Force push with lease"] |
| tooling | ["git checkout, git pull, git rebase, git push --force-with-lease"] |
Automates rebasing the current work branch on the latest main, including intelligent conflict resolution and safe force pushing.
# Store current branch
WORK_BRANCH=$(git branch --show-current)
# Validate not on main
if [ "$WORK_BRANCH" == "main" ]; then
echo "Error: Cannot rebase main onto itself"
exit 1
fi
# Update main
git checkout main
git pull
# Return to work branch and rebase
git checkout $WORK_BRANCH
git rebase main
# Handle conflicts if they occur (see conflict resolution strategy below)
# Force push with lease (safer than --force)
git push --force-with-lease origin $WORK_BRANCH
When conflicts occur during rebase:
List conflicted files: git diff --name-only --diff-filter=U
For each conflicted file, analyze and resolve:
Resolution commands:
# Accept incoming (main) changes
git checkout --theirs <file>
# Accept current (work branch) changes
git checkout --ours <file>
# Manual merge (for complex cases)
# Edit file directly to resolve conflicts
# Stage resolved file
git add <file>
Continue rebase: git rebase --continue
Repeat until complete
Always report:
git log --oneline main..HEADgit rebase --abortIf automatic conflict resolution fails:
git rebase --abort
Then report to user with suggestion to resolve manually via git rebase -i main
--force-with-lease)