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:
code
<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
bash
# Create feature branch git checkout -b feature/my-feature # Stage and commit git add -p # Interactive staging git commit -m "feat(scope): description" # Push and create PR git push -u origin HEAD