- Push your branch
git push -u origin HEADHEAD means the branch you're on now.
- Open the pull request
gh pr create --fillNeeds GitHub CLI, signed in. See “Install GitHub CLI and log in”. --fill uses your commit messages for the title and description. Leave it off and gh asks you for them.
Check it worked
- See it in your browser
gh pr view --web
Undo it
- Close it without merging
gh pr closeYour branch and commits stay. You can reopen it later.
- Push your branch
git push -u origin HEADHEAD means the branch you're on now.
- Open the pull request
gh pr create --fillNeeds GitHub CLI, signed in. See “Install GitHub CLI and log in”. --fill uses your commit messages for the title and description. Leave it off and gh asks you for them.
Check it worked
- See it in your browser
gh pr view --web
Undo it
- Close it without merging
gh pr closeYour branch and commits stay. You can reopen it later.
- Push your branch
git push -u origin HEADHEAD means the branch you're on now.
- Open the pull request
gh pr create --fillNeeds GitHub CLI, signed in. See “Install GitHub CLI and log in”. --fill uses your commit messages for the title and description. Leave it off and gh asks you for them.
Check it worked
- See it in your browser
gh pr view --web
Undo it
- Close it without merging
gh pr closeYour branch and commits stay. You can reopen it later.

New to Pull request? I explain it in plain English on Layman Terms.