Skip to content

Latest commit

 

History

History
364 lines (278 loc) · 11.7 KB

File metadata and controls

364 lines (278 loc) · 11.7 KB

github

GitHub is a widely used git hosting site with social elements (probably doesn’t need an explanation).

I personally tend to gravitate towards alternatives, but GitHub is widely used and also what I’m currently using professionally.

GitHub specific functionality can be accessed using the gh CLI tool.

Installation

gh --version

Help

gh --help

Repository Selection

The tool will use the repository for the current project if detected, therefore a simple setup is to expect to invoke it within a project working directory.

For notebook use, this will involve having a project-local notebook.

auth

Help

gh auth --help

Login

gh auth login --help

Auth From Environment

A Personal Access Token can be created in the UI: https://github.com/settings/tokens And if it is loaded as the GH_TOKEN environment variable it will be used. It looks the read:org scope is often required. (the scopes should have their documentation captured somewhere in here).

Status

Help

gh auth status --help

Issues

Help

gh issue --help