Logo hdtoledo
hdtoledo.dev
Módulos_del_Sistema
MÓDULO_TEÓRICO

Professional Workflow: Pull Requests

Professional Workflow: Pull Requests (PR)

In a professional environment, you NEVER git push directly to the main branch. main is protected.

How do you upload code then? Via Pull Requests (PR).

The PR Lifecycle:

  1. Clone repo.
  2. Create a branch: git switch -c feature/new-button.
  3. Commit and push YOUR BRANCH to the cloud: git push origin feature/new-button.
  4. Go to GitHub and click "Compare & Pull Request".
  5. Code Review: Teammates review your code, leave comments.
  6. Once approved, someone clicks Merge to integrate it into main.