git-advanced-workflows

Solid

Advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog. Use when managing complex Git histories, collaborating on feature branches, or recovering from repository issues. Use when you say "rebase my branch", "cherry-pick a commit", "find the breaking commit", or "recover lost commits".

AI & Automation 38 stars 13 forks Updated today MIT

Install

View on GitHub

Quality Score: 77/100

Stars 20%
53
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Git Advanced Workflows Advanced Git techniques for clean history, effective collaboration, and confident recovery. ## Triggers | Trigger Phrase | Operation | |----------------|-----------| | `rebase my branch` | Interactive or standard rebase guidance | | `cherry-pick a commit` | Cherry-pick with conflict resolution | | `find the breaking commit` | Git bisect workflow | | `recover lost commits` | Reflog exploration and recovery | | `use git worktrees` | Worktree setup and management | ## Process ### Phase 1: Assess the Situation 1. Identify which workflow applies (rebase, cherry-pick, bisect, worktree, recovery) 2. Check current branch state: `git status`, `git log --oneline -10` 3. Create a safety branch before any destructive operation: `git branch backup-<timestamp>` - macOS/Linux (bash/zsh): `git branch backup-$(date +%s)` - Windows PowerShell: `git branch backup-$(Get-Date -UFormat %s)` ### Phase 2: Execute the Workflow #### Rebase: Clean Up Feature Branch Before PR ```bash git checkout feature/user-auth git rebase -i main # Squash "fix typo" commits, reword messages, reorder logically git push --force-with-lease origin feature/user-auth ``` **Rebase operations:** `pick` (keep), `reword` (change message), `edit` (amend content), `squash` (combine keeping message), `fixup` (combine discarding message), `drop` (remove). **Autosquash pattern:** ```bash git commit --fixup HEAD # Mark as fixup for previous commit git rebase -i --autosquash main # A...

Details

Author
rjmurillo
Repository
rjmurillo/ai-agents
Created
7 months ago
Last Updated
today
Language
Markdown
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category