The Chalkboard


Setting up magit-forge

Last Updated: [2023-03-30 Thu 04:57]

Introduction

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.

Configuring Emacs

Add the following to your config.el file:

(setq auth-sources '("~/.authinfo"))

Setting up an authentication key on Github

To use magit-forge on Github, an API key needs creating against your account. To do this, do the following:

Adding the key to Emacs

Open/create your ~/.authinfo file and write the following:

machine api.github.com login ziggy^forge password 012345abcdef...

DISCLAIMER: 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.