⚠️ Corpo alert: you’ll (hopefully) never find yourself working in a company that doesn’t use these.
A PR (shorthand for Pull Request), is a request to merge a branch into another one.
Usually, this would be merging a secondary branch (like a
fix
or afeat
branch) into themain
branch.
PRs allow other developers to check out the updates brought into main
, and to optionally approve or deny these, adding comments where they can explain what should be changed.
After you’ve pushed your commit/s to a branch, you should:
- Go on GitHub, on the repository’s home page
- Switch to your branch
- GitHub will alert you if you can create a PR
Screenshot 2024-11-14 alle 11.58.55.png
In case main
is ahead (and your branch is behind), GitHub will tell you there’s nothing to merge.
Screenshot 2024-11-14 alle 11.58.00.png