Back to skills
SKILL.md
Git Workflow
ASecurityUse when git workflow patterns including branching strategies, commit conventions, merge vs rebase, conflict resolution, and collaborative development best practices for teams of all sizes. Only for Git — not for other VCS. Triggers on \"git-workflow\", \"git workflow\", \"workflow\".
- 2 stars
- 0 votes
- 0 copies
- 2 views
- Added September 19, 2026
Security analysis
100/100Pro scans all 6 files and shows the line behind each finding
npx -y skills add majinmagros/magros.ai-skills --skill git-workflow --agent claude-codeAre you the author of Git Workflow?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/majinmagros-git-workflow)---
name: git-workflow
description: "Use when git workflow patterns including branching strategies, commit conventions, merge vs rebase, conflict resolution, and collaborative development best practices for teams of all sizes. Only for Git — not for other VCS. Triggers on \"git-workflow\", \"git workflow\", \"workflow\"."
metadata:
origin: ECC
---
# Git Workflow Patterns
Best practices for Git version control, branching strategies, and collaborative development.
## When to Activate
- Setting up Git workflow for a new project
- Deciding on branching strategy (GitFlow, trunk-based, GitHub flow)
- Writing commit messages and PR descriptions
- Resolving merge conflicts
- Managing releases and version tags
- Onboarding new team members to Git practices
## When NOT to Use
- Other VCS (Mercurial, SVN, Perforce)
- CI/CD pipeline definitions (use `deployment-patterns`)
- GitOps/K8s delivery (use `git-workflow` concepts via `kubernetes-patterns`)
## Contents
| Topic | Reference |
|---|---|
| Branching, conventional commits | `references/branching-commits.md` |
| Merge vs rebase, PR workflow | `references/merge-pr.md` |
| Conflicts, naming, stash | `references/conflicts-branches.md` |
| Releases, config, aliases | `references/release-config.md` |
| Daily workflows, hooks, anti-patterns | `references/workflows-hooks.md` |
## Example
```bash
git checkout -b feat/user-auth
git commit -m "feat(auth): add login rate limiting"
git push -u origin feat/user-auth
```
## Quick Reference
| Task | Command |
|------|---------|
| Create branch | `git checkout -b feature/name` |
| Switch branch | `git checkout branch-name` |
| Delete branch | `git branch -d branch-name` |
| Merge branch | `git merge branch-name` |
| Rebase branch | `git rebase main` |
| View history | `git log --oneline --graph` |
| View changes | `git diff` |
| Stage changes | `git add .` or `git add -p` |
| Commit | `git commit -m "message"` |
| Push | `git push origin branch-name` |
| Pull | `git pull origin branch-name` |
| Stash | `git stash push -m "message"` |
| Undo last commit | `git reset --soft HEAD~1` |
| Revert commit | `git revert HEAD` |
## Referências
Files in this skill
- SKILL.md
- references/branching-commits.md
- references/conflicts-branches.md
- references/merge-pr.md
- references/release-config.md
- references/workflows-hooks.md
Attribution
Comments
Loading comments…