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
39 changes: 39 additions & 0 deletions gitbootcamp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -551,3 +551,42 @@ To edit an open pull request that targets ``main``:
git push git@github.com:<contributor>/cpython <pr_number>:<branch_name>

5. Optionally, :ref:`delete the PR branch <deleting_branches>`.


GitHub CLI
----------

WIP: short description.


Example of useful commands:

1. Login

.. code-block:: bash

gh auth login

2. Create a PR

.. code-block:: bash

gh pr create

3. Checkout others PR

.. code-block:: bash

gh pr checkout

4. Set ssh at the git protocol

.. code-block:: bash

gh config set git_protocol ssh

5. Set the browser

.. code-block:: bash

gh config set browser <$browser-path>
0