← Git & GitHub
// lesson 8 of 9
Pull requests and collaboration
Propose changes, get feedback and work as a team.
// 1. read the lesson
On a team, you rarely push straight to main. Instead you push a branch and open a pull request (PR) on GitHub. A PR says: here are my changes, please review them before they join main.
git switch -c fix-typo git commit -am "Fix typo on about page" git push -u origin fix-typo
Teammates comment, suggest edits and approve. Then the branch is merged. Contributing to open-source projects works the same way, and merged PRs look great on your CV.
Written by the LEARN team.
Sign in to take the lesson test.
Your answers and code are checked and saved to your account.
Sign in