GitHub Authentication

The following requires the installation of git and gh. If you have not done so, see [Development Environment: Tools].

You need to authenticate your local system to work with GitHub. Here are three different ways to do so:

gh auth

To set up cached authentication with gh:

The command will prompt a series of questions with default answers, which do not need to be changed. Press enter for each:

You will then see instructions similar to the following:

If you are using WSL, you may not be able to directly open a web browser in Windows from a WSL shell. If that's the case, log into your GitHub account in any browser and visit the following URL:

https://github.com/login/device

Then, enter the one-time code.

You have successfully authenticated with GitHub, so you can now use git and gh without re-authenticating.