Forge
Table of Contents
1. Description
2. Setting the username
To inform Ghub about your username
git config --global github.user USERNAME
If you need to identify as another user in a particular repository, then you have to set that variable locally:
cd /path/to/repo
git config --local github.user USERNAME
3. Creating a token
Token example
machine api.github.com login USERNAME^forge password 012345abcdef...
4. Storing a token
- https://www.gnu.org/software/emacs/manual/html_node/auth/index.html#Top
- https://www.redhat.com/sysadmin/encryption-decryption-gpg
Add the token to ~/.authinfo and encrypt it using GnuPG, remove the unencrypted file afterward
gpg -c ~/.authinfo
Explicitly set ~/.authinfo.gpg as the only file for auth-sources
(setq auth-sources '("~/.authinfo.gpg"))