Skip to content

simonplend/howto-create-pr-with-github-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 

Repository files navigation

How to create a pull request with the GitHub CLI 🀘

Screencast of creating a pull request with the GitHub CLI

Steps

  1. Open up your terminal, because this is all about the command line!

  2. Follow the instructions here to install the GitHub CLI: https://github.com/cli/cli#installation

  3. Run gh auth login to authenticate the GitHub CLI with your GitHub account.

Note: If you have an environment variable set in your shell named GITHUB_TOKEN, the GitHub CLI will automatically use that.

  1. If you're not already in the directory for the project which you want to open a pull request for, cd there now and check with git status that all of your changes are committed in your branch.

  2. Run the command gh pr create and watch the magic unfold in front of your πŸ‘€ !

About

How to create a pull request with the GitHub CLI

Resources

Stars

Watchers

Forks