Home | Catalogue | Robert's Blog
Last Updated: [2023-03-30 Thu 04:57]
Magit forge is an Emacs package that allows you to work directly with remote git repositories hosted on public platforms such as Github and Gitlab. I'm currently only using Github, but may extend this note if I end up using Gitlab.
Add the following to your config.el
file:
setq auth-sources '("~/.authinfo")) (
To use magit-forge on Github, an API key needs creating against your account. To do this, do the following:
Click "Generate new token"
Then "Generate new token (classic)"
Give it a name
Set the expiry (I usually set no expiry)
Select the following scopes:
repo
(this selects the following sub
scopes):
repo:status
repo_deployment
public_repo
repo:invite
security_events
Then click "Generate token"
Once this is complete copy the token
Open/create your ~/.authinfo
file and
write the following:
machine api.github.com login ziggy^forge password 012345abcdef...
ziggy
with your username and
012345abcdef...
with your keyDISCLAIMER: The information provided on this website is generated from my own notes and is provided "as is" and without warranties. Robert Ian Hawdon can not be held responsible for damages caused by following a guide published on this site. This website contains links to other third-party websites. Such links are provided as convienice of the reader. I do not endorce the contents of these third party sites.