@majiayu000/git-advanced
BAdvanced Git operations: rebasing, cherry-picking, bisect, history management
Install
agr install @majiayu000/git-advanced --target claudeWrites 2 files into .claude/skills/, pinned to git-4d822c59.
- .claude/skills/git-advanced/SKILL.md
- .claude/skills/git-advanced/metadata.json
Document
name: git-advanced description: Advanced Git operations: rebasing, cherry-picking, bisect, history management category: Git
Skill: git-advanced
What I do
I provide expertise in advanced Git operations to manage complex version control scenarios. I focus on history management, regression hunting, and clean collaboration workflows.
When to use me
- When cleaning up a complex feature branch before a pull request
- When hunting for a commit that introduced a bug using bisect
- When moving specific commits between branches using cherry-pick
- When recovering lost work using the reflog
Core principles
- History preservation: Use rebase to keep a linear history, but avoid changing pushed public history.
- Atomic search: Use bisect to find regression points quickly.
- Safety first: Use the reflog as a safety net for any operation that modifies HEAD.
- Fixup discipline: Use fixup commits to keep work-in-progress clean and easily squashable.
Patterns & examples
Interactive rebase:
Use git rebase -i HEAD~n to squash, reword, or reorder the last n commits. This is standard before merging any feature branch.
Git bisect:
- Start with
git bisect start. - Mark the current (broken) commit:
git bisect bad. - Mark a known good commit:
git bisect good <hash>. - Git will then check out a commit in the middle for testing. Continue marking
goodorbaduntil the culprit is found.
Fixup workflow:
- Make a small fix for a previous commit.
- Commit with
git commit --fixup=<hash>. - Later, use
git rebase -i --autosquash <base>to automatically merge those fixes.
Selective backporting:
Use git cherry-pick <hash> to apply a specific commit from another branch to your current one.
Anti-patterns to avoid
- ❌ Rewriting public history: Never rebase or squash commits that have already been pushed and shared with other developers.
- ❌ Force pushing blindly: Always use
--force-with-leasewhen pushing rebased branches to ensure you don't overwrite others' work. - ❌ Large rebases: Avoid rebasing branches with hundreds of commits. Rebase frequently to manage conflicts in small increments.
KB Reference
~/vaults/baphled/3. Resources/Knowledge Base/AI Development System/Skills/Git/Git Advanced.md
Related skills
git-master: For standard Git workflows and searchgit-worktree: For managing multiple branches simultaneouslyai-commit: For atomic commit discipline and attribution
Repository README
Describes majiayu000/claude-skill-registry-data as a whole, which may contain artifacts other than this one. Where this artifact had no useful description of its own, its summary was taken from here.
Claude Skill Registry (Data)
This repo contains the archived skill contents (the heavy, browsable skill files).
Canonical layout
- Category folders at repo root (e.g.
development/,documents/,data/, ...) - Each skill lives under a category:
<category>/<skill>/SKILL.md+<category>/<skill>/metadata.json - Case conflicts are resolved with
{name}-{owner}-{repo}suffixes (fallback:-{short-hash}).
Archive status
- Live badges above are sourced from
claude-skill-registry-corestats.json. - Counts in this README are intentionally dynamic, not hardcoded.
- If the badges look stale, refresh the
corebuild/index pipeline rather than editing numbers here.
Where the index + site live
- Core repo: https://github.com/majiayu000/claude-skill-registry-core
- Main repo (merged publish artifact): https://github.com/majiayu000/claude-skill-registry
Trustgrade B
- passBody integrity
Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.
- passType matchnot applicable to this artifact type
Whether the artifact is really the kind of thing its metadata claims it is.
- passFreshness
How long since the source repository was last pushed to.
- passPrompt injection
Scans the artifact's own text for instructions aimed at your agent rather than at you.
- warnLicenseno SPDX license detected
Whether the source repository declares an SPDX license permissive enough to redistribute.
How the grade is calculated
Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:
- Aevery check passed
- Bone warning
- Ctwo warnings
- Dprompt injection or body integrity failed, or three warnings
- Fone of those failed, and something else is wrong
These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.
Versions
git-4d822c599ca52026-07-31