GitHub CLI Beta
Take GitHub to the command line
Run
brew install github/gh/gh
Check out our docs for more info and view all GitHub CLI commands.
-
- gh pr view
- gh issue create
- gh pr list
-
- gh pr create
- gh pr list
- gh issue status
-
- gh issue create
- gh pr checkout
- gh issue list
-
- gh issue list
- gh issue view
- gh pr view
-
- gh pr status
- gh pr create
-
- gh pr view
- gh issue create
- gh pr list
-
- gh pr create
- gh pr list
- gh issue status
-
- gh issue create
- gh pr checkout
- gh issue list
-
- gh issue list
- gh issue view
- gh pr view
-
- gh pr status
- gh pr create
$ gh pr status gh issue list gh pr create gh pr checkout
Check on the status of your pull requests.
View and filter a repository’s open issues.
Create a pull request.
Check out pull requests locally.
$
gh pr status
Current branch
There is no pull request associated with [fix-homepage-bug]
Created by you
You have no open pull requests
Requesting a code review from you
#100 Fix footer on homepage [fix-homepage-footer]
- Checks passing - Approved
gh issue list
There is no pull request associated with [fix-homepage-bug]
Created by you
You have no open pull requests
Requesting a code review from you
#100 Fix footer on homepage [fix-homepage-footer]
- Checks passing - Approved
Issues for owner/repo
#16 Improving interactions with protected branches
#14 PR commands on a detached head
#13 Support for GitHub Enterprise (enhancement)
#8 Add an easier upgrade command (bug)
gh pr create
#16 Improving interactions with protected branches
#14 PR commands on a detached head
#13 Support for GitHub Enterprise (enhancement)
#8 Add an easier upgrade command (bug)
Creating pull request for feature-branch into master in ampinsk/test
? Title My new pull request
? Body [(e) to launch nano, enter to skip]
http://github.com/owner/repo/pull/1
gh pr checkout 12
? Title My new pull request
? Body [(e) to launch nano, enter to skip]
http://github.com/owner/repo/pull/1
remote: Enumerating objects: 66, done.
remote: Counting objects: 100% (66/66), done.
remote: Total 83 (delta 66), reused 66 (delta 66), pack-reused 17
Unpacking objects: 100% (83/83), done.
From https://github.com/owner/repo
* [new ref] refs/pull/8896/head -> patch-2
M README.md
Switched to branch 'patch-2'
remote: Counting objects: 100% (66/66), done.
remote: Total 83 (delta 66), reused 66 (delta 66), pack-reused 17
Unpacking objects: 100% (83/83), done.
From https://github.com/owner/repo
* [new ref] refs/pull/8896/head -> patch-2
M README.md
Switched to branch 'patch-2'
Goodbye, context switching. Hello, terminal.
Easy creation
Create pull requests and issues without leaving the command line.
Quick status checks
See the status of open issues and pull requests, and see what’s waiting for review.
Seamless navigation
Filter issues and pull requests, and open them in your browser.
Beta
View installation instructions →
Try GitHub on the command line
GitHub CLI is ready for your terminal. It’s free and open source—getting better with every fork.
Run
Download for Mac
brew install github/gh/gh
or
Contribute and learn more
Help us make GitHub CLI fit the way you work by sharing feedback. And find more information about how to use it in our manual and release notes.
Share your feedback in our repository → Read the manual → Check out the release notes →