Pull Requests
Pull Requests (PRs) are how you propose changes to a codebase. Instead of pushing straight to main, you push a branch and open a PR so others can review it before it's merged. This is how most professional teams work. Writing "Closes #5" in the description closes the issue automatically when the PR is merged.
# 1. Create a branch git checkout -b feature/new-button # 2. Make changes and commit git add . git commit -m "Add new button component" # 3. Push the branch git push -u origin feature/new-button # 4. Open the PR (or click "Compare & pull request" on GitHub) gh pr create --title "Add new button" --body "Closes #5" # 5. After review, merge it gh pr merge