🏠 Homepage 🏠 Syllabus of Day 2 ⬅️ Previous: 🍴 Forking a Repository
A Pull Request (PR) is a way to propose your changes from your branch or fork to be merged into another repository’s branch (usually the main branch). It allows others to review, discuss, and approve your changes before they become part of the main codebase.
git push origin my-feature-branch
Go to your repository on GitHub.
Click the “Compare & pull request” button that appears near the top of your repo.
Select the base repository and branch you want to merge into (usually main
), and the compare branch (your feature branch).
Title:
Add login feature
Description:
```
This PR adds a login page with authentication logic.
Step | Action/Description |
---|---|
Push branch | git push origin my-feature-branch |
Open PR | Click “Compare & pull request” on GitHub |
Fill PR details | Add title and description |
Submit PR | Click “Create pull request” |
Tip:
Write clear titles and descriptions to help reviewers understand your changes.
➡️Up Next: 👥 Adding Collaborators