8000 gh-861: Document GitHub CLI by za · Pull Request #882 · python/devguide · GitHub
[go: up one dir, main page]

Skip to content

gh-861: Document GitHub CLI #882

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jul 1, 2022
Prev Previous commit
Next Next commit
gh-861 Make gh auth login in a separate section
and fix the broken link.
  • Loading branch information
za committed Jun 9, 2022
commit f59b47ab361493007a7f34001b258c21a4746461
17 changes: 8 additions & 9 deletions gitbootcamp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -561,26 +561,25 @@ You can create new pull request, create new release, set alias command,
check PR status, and etc, using this CLI.

You can install GitHub CLI `by following this installation instructions.
<https://github.com/cli/cli#installation`__
<https://github.com/cli/cli#installation>`_ After installing GitHub CLI,
you need to have your GitHub CLI authenticated::

Example of useful commands:

#. Login::
gh auth login

gh auth login
Example of useful commands:

#. Create a PR::
* Create a PR::

gh pr create

#. Checkout others PR::
* Checkout others PR::

gh pr checkout <pr-id>

#. Set ``ssh`` at the git protocol::
* Set ``ssh`` at the git protocol::

gh config set git_protocol ssh

#. Set the browser::
* Set the browser::

gh config set browser <browser-path>
0