GitHub CLI
Pull Requests Commands
Create and manage pull requests efficiently. Learn to submit PRs, request reviews, merge, and manage the entire PR lifecycle from the command line.
14 commands
Pro Tips
Use 'gh pr create --fill' to auto-populate the title and body from commit messages.
Review PRs in terminal with 'gh pr diff' and approve with 'gh pr review --approve'.
Use 'gh pr checkout 123' to quickly check out a PR by number for local testing.
Common Mistakes
'gh pr merge --squash' squashes all commits into one. Use when you want clean history, avoid for detailed commits.