title | tags |
---|---|
How to create a pull request in Github from the command line (without using the Github GUI or any apps) |
git |
How to create a pull request in Github from the command line (without using the Github GUI or any apps)
The syntax:
$ gh pr create --base <branch-to-PR-into> --head <branch-youre-PRing> --title "<PR title>" --[body] "<Message body>"
Note: The body part is optional.
Example:
$ gh pr create --base dev --head cleanup --title "Merge cleanup branch" --body "A slew of commits first rodeo styling and housecleaning"
Creating pull request for cleanup into dev in serpcompany/serp-app
https://github.com/serpcompany/serp-app/pull/3