Collaborative_Workflows
Collaborative Workflows
Team collaboration patterns for large projects.
π Team Workflow
graph LR
A[Developer] --> B[Feature Branch]
B --> C[Push & PR]
C --> D[Code Review]
D --> E[Approval]
E --> F[Merge to Main]
F --> G[CI/CD Deploys]
πΏ Feature Branch Workflow
Create Feature Branch
git checkout main
Start from main.
git pull origin main
Get latest changes.
git checkout -b feature/USER-123-add-login
Create descriptive branch.
Work Incrementally
git add .
Stage changes.
git commit -m "feat: add login form component"
Small, focused commits.
Keep Updated
git fetch origin main
Get remote changes.
git rebase origin/main
Keep branch current.
Push for Review
git push -u origin feature/USER-123-add-login
Push branch.
gh pr create --fill
Create PR.
π₯ Code Review Process
Self-Review First
git diff main...HEAD
Review your own changes.
Request Reviewers
gh pr edit --add-reviewer teammate1,teammate2
Add reviewers.
Address Feedback
git commit -m "fix: address review feedback"
Commit fixes.
git push
Push updates.
π Sync with Team
Morning Sync
git checkout main
Switch to main.
git pull origin main
Get overnight changes.
git checkout -
Back to feature branch.
git rebase main
Incorporate changes.
π·οΈ Commit Conventions
Conventional Commits
type(scope): description
[optional body]
[optional footer]
Types:
feat- New featurefix- Bug fixdocs- Documentationrefactor- Code changetest- Add testschore- Maintenance
π‘ Tips
Communication
Comment on PRs early with status updates.
Pair Programming
git commit --author="Partner <partner@email.com>" -m "feat: pair programmed"
π Related
#git #collaboration #workflow #team