doc: west: Add an example of using the credential store for GitHub

A simple one-liner to help users authenticate with GitHub using its
Personal Access Token and the Git credential store.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
Carles Cufi
2022-04-26 16:41:49 +02:00
committed by Anas Nashif
parent 462b13e16e
commit d50b5658bb

View File

@@ -95,6 +95,13 @@ account password. (This may be required if your account has two-factor
authentication enabled, and may be preferable to storing your account password
in plain text even if two-factor authentication is disabled.)
You can use the Git credential store to authenticate with a GitHub PAT
(Personal Access Token) like so:
.. code-block:: shell
echo "https://x-access-token:$GH_TOKEN@github.com" >> ~/.git-credentials
If you don't want to store any credentials on the file system, you can store
them in memory temporarily using `git-credential-cache`_ instead.