my-notes

Collaborative_Workflows

1 min read

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 feature
  • fix - Bug fix
  • docs - Documentation
  • refactor - Code change
  • test - Add tests
  • chore - Maintenance

πŸ’‘ Tips

Communication

Comment on PRs early with status updates.

Pair Programming
git commit --author="Partner <partner@email.com>" -m "feat: pair programmed"


#git #collaboration #workflow #team

Built with mdgarden