Steps

  1. Pull latest
    1. git checkout main
    2. git pull origin main
  2. Create feature branch
    1. git checkout -b feature/login
  3. Code + commit
    1. git add .
    2. git commit -m "feat: implement login API"
  4. Push
    1. git push origin feature/login
  5. Create Pull Request (on GitHub)
    1. Compare feature/login → main
    2. Add description
    3. Request review
  6. Code Review (by Teammates)
    1. Comment
    2. Request changes
  7. Update PR
    1. git add .
    2. git commit -m "fix: address review comments"
    3. git push
  8. PR will auto update (no need to create a new PR)
    1. GitHub auto adds those commits to the PR
    2. Reviewers will see:
      • New commits
      • Updated code changes (diff)
  9. Reviewer approves your PR.
  10. Anyone with merge permission can merge the PR: