| name | git-workflow |
| description | Manage git operations including branching, commits, and pull requests. Use when working with version control or when user mentions git, commits, branches, or PRs. |
| license | MIT |
| metadata | {"author":"vinayprograms","version":"1.0"} |
| allowed-tools | Bash(git:*) |
Git Workflow Instructions
Branch Management
When creating branches:
- Use descriptive names:
feature/, fix/, docs/, refactor/
- Keep names lowercase with hyphens
- Example:
feature/add-user-auth
Commit Messages
Follow conventional commits:
<type>(<scope>): <description>
[optional body]
[optional footer]
Types: feat, fix, docs, style, refactor, test, chore
Pull Request Workflow
- Ensure branch is up to date with main
- Run tests locally before pushing
- Create PR with descriptive title and body
- Link related issues
- Request appropriate reviewers
Common Commands
git checkout -b feature/my-feature
git add -p
git commit -m "feat(scope): description"
git push -u origin HEAD