본문으로 건너뛰기
cccskills
무료GitHub에 공개

ls-git-merge-rebase

Advanced git operations beyond add/commit/push. Use when rebasing, bisecting bugs, using worktrees for parallel development, recovering with reflog, managing subtrees/submodules, resolving merge conflicts, cherry-picking across branches, or working with monorepos.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(5)

  • SKILL.md4.3 KB
  • references/rebase-and-bisect.md3.1 KB
  • references/repo-structure-and-conflicts.md4.4 KB
  • references/tags-releases-and-tips.md1.7 KB
  • references/worktrees-recovery-and-history.md4.2 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Git Workflows

Use this skill for advanced Git operations that can rewrite history, move work between branches, recover lost commits, or manage large and multi-repository codebases. Keep this file as the activation and safety workflow; open the references only for the procedure you need.

When to Use

  • Cleaning up commit history before merging.
  • Finding which commit introduced a bug.
  • Working on multiple branches at the same time.
  • Recovering lost commits, dropped stashes, or mistaken resets.
  • Cherry-picking commits across branches or forks.
  • Managing subtrees, submodules, or sparse checkouts.
  • Resolving complex merge or rebase conflicts.
  • Inspecting history with blame, pickaxe, or file-following log commands.

Safety Workflow

  1. Inspect the repository before changing it:
git status --short --branch
git remote -v
git branch --show-current
  1. Identify whether the target branch is shared. Do not rebase, amend, reset, or force-push shared history unless the user explicitly asks for that operation.
  2. Preserve unrelated work. If the worktree is dirty, only stage or modify files that belong to the task.
  3. Before every git reset --hard, require a clean worktree. Preserve desired staged, unstaged, and relevant untracked work first with an approved WIP commit, patch, stash (use -u when needed), or separate worktree. A backup branch or tag preserves only commits; it does not preserve uncommitted work.
git status --short
git stash push -u -m "WIP before recovery"
git branch backup/before-recovery
  1. Prefer non-interactive commands when automating. Use interactive rebase only when the user can review the intended commit list or the change is clearly local and scoped.
  2. After each operation, re-check status and confirm the branch, staged files, and diff match the requested outcome.

Rule ownership

This skill owns advanced Git operations and traceability behavior. GIT_TRACEABILITY.md is the public reference; use this skill for branch, history, worktree, release-tag, and checkpoint decisions.

  • Preserve unrelated dirty-tree work.
  • Record commit hashes or branch names when a decision depends on a past state.
  • Use ls-git-broken-state-recovery for broken worktree/index/ref symptoms instead of improvising repair steps here.

Workflow Router

Open the matching reference and follow only that recipe:

Quick Triage

Use these read-only commands before selecting a recipe:

git log --oneline --decorate --graph -20
git diff --stat
git diff --cached --stat
git reflog --date=relative -20

For branch divergence:

git fetch --all --prune
git status --short --branch
git log --oneline --left-right --cherry-pick HEAD...@{upstream}

If an operation is already in progress, inspect Git's state before continuing:

git status
git rebase --show-current-patch
git diff --cc

Completion Checks

  • git status --short --branch shows the expected branch and worktree state.
  • git diff --stat and git diff --cached --stat match the task scope.
  • Any rewritten or moved commits were verified with git log --oneline --graph.
  • Recovery work leaves a named branch or clear reflog handle for rollback when the operation could discard reachable work.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Guide accessibility reviews for UI, documents, and workflows. Use for WCAG-oriented audits, keyboard review, semantics, contrast, and remediation planning.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

CruxExperts/LocalSetup62026년 10월 21일 업데이트

Use when choosing a LocalSetup Agent-* lane for exploration, research, bounded implementation, or review. Consult the static capability matrix; do not probe account or network availability.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

CruxExperts/LocalSetup62026년 10월 21일 업데이트

Guide agent email inbox workflows with prompt-injection defenses. Use for inbound email processing, webhooks, routing, and safety review.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

CruxExperts/LocalSetup62026년 10월 21일 업데이트

Navigate and understand codebases using agentlens hierarchical documentation. Use when exploring new projects, finding modules, locating symbols in large files, finding TODOs/warnings, or understanding code structure.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

CruxExperts/LocalSetup62026년 10월 21일 업데이트

Use for Agent Q signed encrypted file-drop or mail ship and ingest, private registry v2 setup, queue status, and transport maintenance.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

CruxExperts/LocalSetup62026년 10월 21일 업데이트

Inventory wrapper for the alirezarezvani Claude skills bundle. Use when triaging its broad skill catalog and large script surface before any targeted import.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

CruxExperts/LocalSetup62026년 10월 21일 업데이트

CruxExperts의 스킬 모두 보기

이 스킬의 문제 신고