...
On GNU/Linux installations that features feature the GNOME Keyring the recommended setup is to use libsecret and the "libsecret credential helper" in order to use GNOME Keyring as the credential manager. Please follow the instructions for setting up libsecret for the GNU/Linux distribution you are using.
...
Personal Access Token
To generate a a personal access token on GitHub go to https://github.com/settings/tokens and and click on "Generate new token". You only need to select the "repo" scope (permission). After you have generated your token, store it in the GNOME Keyring using git token store:
...
The next step is to generate a personal access token. Go to https://github.com/settings/tokens and and click on "Generate new token". You only need to select the "repo" scope (permission). After you have generated your token, use GPG to encrypt it and store it in a file. The personal access token can be encrypted either using a GPG key or using a passphrase. If you have a GPG key you probably already know how to encrypt text with it, so we will only cover encryption using a passphrase here. To encrypt the personal access with a passphrase and store it in a file, run the following command (replacing <PAT>
with the personal access token you just generated):
...
The next step is to generate a personal access token. Go to https://github.com/settings/tokens and and click on "Generate new token". You only need to select the "repo" scope (permission). After you have generated your token, use age to encrypt it and store it in a file. To encrypt the personal access token using a passphrase and storing the result in a file, run the following command (replacing <PAT>
with your personal access token):
...
Finally you must configure Git to decrypt and read the personal access token from the file ~/pat.age when credentials are needed for https://github.com. This is done by the following command:
...
The next step is to generate a personal access token. Go to https://github.com/settings/tokens and and click on "Generate new token". You only need to select the "repo" scope (permission). After you have generated your token, use pass to store the personal access token securely:
...
Finally you must configure Git to read the personal access token from when credentials are needed for https://github.com. This is done by the following command:
...
Warning |
---|
This is not as secure as storing the personal access token encrypted. Any person or program who can read |
A An insecure way to store your personal access token is to configure Git to store the personal acces access token unencrypted in the file ~/.git-credentials
. You can configure Git do to this by running the following command:
Code Block | ||
---|---|---|
| ||
$ git configure credential.helper store |
To generate a a personal access token on GitHub go to https://github.com/settings/tokens and and click on "Generate new token". You only need to select the "repo" scope (permission). After you have generated your token, store it in ~/.git-credentials
by running git token store
:
...