| 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
git checkout -b feature/new-feature
git branch -a
git branch -d feature/old-feature
Commit
git add .
git commit -m "feat: add upload queue"
git commit --amend -m "feat: add upload queue with retry"
Sync
git pull --rebase origin main
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
git status
2. Open Conflicted File
<<<<<<< HEAD
Your changes
=======
Their changes
>>>>>>> branch-name
3. Resolve & Complete
git add resolved-file.js
git rebase --continue
git merge --continue
PR Review Checklist
Recovery Commands
git reset --soft HEAD~1
git checkout -- file.js
git stash
git stash pop
git log --oneline -10