Skip to content
Back to skills

Git Workflow

ASecurity

Git workflows including branching, merging, PR review, and conflict resolution. Use when managing version control, reviewing changes, or fixing merge conflicts.

  • 33 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added February 10, 2026
documentationbashgitdocumentation

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add lovedragonball/power-ranger-toolkit --skill git-workflow --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Git Workflow?

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

Security grade badge for Git Workflow
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/lovedragonball-git-workflow/badge)](https://www.skillsdirectory.com/skills/lovedragonball-git-workflow)

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-workflow
description: Git workflows including branching, merging, PR review, and conflict resolution. Use when managing version control, reviewing changes, or fixing merge conflicts.
---

# 🌿 Git Workflow Skill

## Branching Strategy

```
main (production)
β”œβ”€β”€ develop (integration)
β”‚   β”œβ”€β”€ feature/upload-queue
β”‚   β”œβ”€β”€ feature/multi-folder
β”‚   └── bugfix/round-robin
```

---

## Common Commands

### Branch Management
```bash
# Create and switch
git checkout -b feature/new-feature

# List branches
git branch -a

# Delete branch
git branch -d feature/old-feature
```

### Commit
```bash
# Stage and commit
git add .
git commit -m "feat: add upload queue"

# Amend last commit
git commit --amend -m "feat: add upload queue with retry"
```

### Sync
```bash
# Pull with rebase
git pull --rebase origin main

# Push
git push origin feature/new-feature
```

---

## Commit Message Format

```
<type>(<scope>): <subject>

[body]

[footer]
```

| Type | Usage |
|------|-------|
| feat | New feature |
| fix | Bug fix |
| docs | Documentation |
| style | Formatting |
| refactor | Code restructure |
| test | Adding tests |
| chore | Maintenance |

**Examples:**
```
feat(uploader): add round-robin folder selection
fix(socket): resolve connection timeout issue
docs(readme): update installation steps
```

---

## Conflict Resolution

### 1. Identify Conflicts
```bash
git status
# Look for "both modified" files
```

### 2. Open Conflicted File
```
<<<<<<< HEAD
Your changes
=======
Their changes
>>>>>>> branch-name
```

### 3. Resolve & Complete
```bash
# After fixing manually
git add resolved-file.js
git rebase --continue
# or
git merge --continue
```

---

## PR Review Checklist

- [ ] Code follows style guide
- [ ] Tests added/updated
- [ ] No console.log/debug code
- [ ] Documentation updated
- [ ] No hardcoded secrets
- [ ] Commit messages clear

---

## Recovery Commands

```bash
# Undo last commit (keep changes)
git reset --soft HEAD~1

# Discard local changes
git checkout -- file.js

# Stash changes
git stash
git stash pop

# View history
git log --oneline -10
```

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.