Pull requests
A pull request (PR) asks to merge your branch into main. Review happens on GitHub; gh creates and inspects the PR.
Before you open one
- Commit and push the branch
- Stay in the repo folder
- Be signed in
Create
gh pr create --fill
--fill uses your commit messages for title and body. To write them yourself:
gh pr create --title "Add Git how-to pages" --body "Handbook section for Git, clone, commit, and branches."
Base branch is main unless you pass --base.