Skip to content
Back to skills

Git Advanced Workflows

ASecurity

Advanced Git workflows - rebase, cherry-pick, bisect, worktrees, reflog - for clean history and recovery. Use when managing complex histories, collaborating on branches, or troubleshooting a repo.

  • 6 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 9, 2026
ai-agentsgit

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned October 9, 2026

npx -y skills add HigorAlves/orc --skill git-advanced-workflows --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Git Advanced Workflows?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Git Advanced Workflows
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/higoralves-git-advanced-workflows/badge)](https://www.skillsdirectory.com/skills/higoralves-git-advanced-workflows)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: git-advanced-workflows
description: Advanced Git workflows - rebase, cherry-pick, bisect, worktrees, reflog - for clean history and recovery. Use when managing complex histories, collaborating on branches, or troubleshooting a repo.
---

# Git Advanced Workflows

Master advanced Git techniques to maintain clean history, collaborate effectively, and recover from any situation with confidence.

## When to Use This Skill

- Cleaning up commit history before merging
- Applying specific commits across branches
- Finding commits that introduced bugs
- Working on multiple features simultaneously
- Recovering from Git mistakes or lost commits
- Managing complex branch workflows
- Preparing clean PRs for review
- Synchronizing diverged branches

## Which Tool for Which Situation

| Situation | Tool | Reference |
| --- | --- | --- |
| Clean up / squash / reword / reorder / split commits before a PR | Interactive rebase | `references/rebase.md` |
| Update a feature branch with `main`, decide rebase vs merge | Rebase / merge | `references/rebase.md` |
| Apply a single commit (e.g. hotfix) to other branches/releases | Cherry-pick | `references/cherry-pick.md` |
| Apply only specific files from a commit | Partial cherry-pick | `references/cherry-pick.md` |
| Find the commit that introduced a bug | Bisect | `references/bisect.md` |
| Work on multiple branches at once without stashing | Worktrees | `references/worktrees.md` |
| Recover lost commits / deleted branches / undo a bad reset | Reflog & recovery | `references/reflog-recovery.md` |
| Abort an in-progress rebase/merge/cherry-pick/bisect | Recovery commands | `references/reflog-recovery.md` |
| Safety rules before rewriting shared history | Best practices & pitfalls | `references/history-rewrite.md` |

Read the matching `references/*.md` file when you need the detailed commands and worked examples for that situation. Load only the references relevant to the task at hand.

## References

- `references/rebase.md` - interactive rebase operations, clean-up-before-PR workflow, rebase vs merge strategy, autosquash, splitting commits.
- `references/cherry-pick.md` - cherry-picking single commits/ranges, hotfix-to-multiple-releases workflow, partial (per-file) cherry-pick.
- `references/bisect.md` - manual and automated `git bisect` to locate a bug-introducing commit.
- `references/worktrees.md` - managing multiple worktrees for simultaneous multi-branch development.
- `references/reflog-recovery.md` - using reflog to recover lost commits/branches, undo resets, and abort in-progress operations.
- `references/history-rewrite.md` - cross-cutting best practices and common pitfalls when rewriting history (force-with-lease, backups, public branches).

Files in this skill

  • SKILL.md2.7 KB
  • references/bisect.md1 KB
  • references/cherry-pick.md1 KB
  • references/history-rewrite.md1.4 KB
  • references/rebase.md2.4 KB
  • references/reflog-recovery.md1.2 KB
  • references/worktrees.md1.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…