Skip to content
Back to skills

Git Advanced Workflows

ASecurity

Sub-skill of devtools: Git Advanced Workflows (+1).

  • 17 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
toolsgobashgit

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add vamseeachanta/workspace-hub --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/vamseeachanta-git-advanced-workflows/badge)](https://www.skillsdirectory.com/skills/vamseeachanta-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: devtools-git-advanced-workflows
description: 'Sub-skill of devtools: Git Advanced Workflows (+1).'
version: 1.0.0
category: development
type: reference
scripts_exempt: true
---

# Git Advanced Workflows (+1)

## Git Advanced Workflows

```bash
# See git-advanced for complete patterns

# Git worktrees - work on multiple branches simultaneously
git worktree add ../feature-branch feature/new-feature
git worktree add ../hotfix-branch hotfix/urgent-fix
git worktree list
git worktree remove ../feature-branch

# Git bisect - find the commit that introduced a bug
git bisect start
git bisect bad HEAD
git bisect good v1.0.0
# Git will checkout commits for you to test
git bisect run ./test.sh  # Automate with a script
git bisect reset

# Git reflog - recover lost commits
git reflog
git checkout HEAD@{5}  # Go back to a previous state
git branch recovered-branch HEAD@{5}  # Create branch from lost commit

# Git rerere - reuse recorded resolution
git config rerere.enabled true
# Now git remembers how you resolved conflicts

# Interactive rebase patterns
git rebase -i HEAD~5
# Commands in editor:
#   pick   - use commit
#   reword - edit commit message
#   edit   - stop and amend
#   squash - combine with previous
#   fixup  - combine, discard message
#   drop   - remove commit

# Git hooks
cat > .git/hooks/pre-commit << 'EOF'
#!/bin/bash
# Run tests before commit
npm test || exit 1

# Run linter
npm run lint || exit 1
EOF
chmod +x .git/hooks/pre-commit

# Shared hooks with husky
npx husky init
echo "npm test" > .husky/pre-commit
```


## Raycast/Alfred Automation

```bash
# See raycast-alfred for complete patterns

# Raycast script command (bash)
#!/bin/bash

# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Open Project
# @raycast.mode silent

# Optional parameters:
# @raycast.icon πŸ“
# @raycast.argument1 { "type": "text", "placeholder": "project name" }

PROJECT="$1"
PROJECT_DIR="$HOME/projects/$PROJECT"

if [ -d "$PROJECT_DIR" ]; then
    code "$PROJECT_DIR"
    echo "Opened $PROJECT"
else
    echo "Project not found: $PROJECT"
fi
```

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…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.