Magit Explained
| Magit |
| Author: | Marius Vollmer |
| Developer: | Jonas Bernoulli, Kyle Meyer, and Noam Postavsky |
| License: | GPL-3.0-or-later |
| Programming Language: | Emacs Lisp |
Magit (or [1]) is a Git version control interface for GNU Emacs.[2] It is written in Emacs Lisp and distributed through the MELPA package repository,[3] where it is the most-downloaded non-library package, with over 4.3 million downloads as of September 2024.[4]
Like many graphical user interfaces, Magit provides a visual interface to represent version control actions; however, it uses a keyboard-centric model, and also functions as a text-based user interface. The issue of key-memorization is mitigated through use of a popup menu which displays the actions available to the user[5] — serving as a mnemonic aid.[6]
History
Magit was created by Marius Vollmer in 2008,[7] with Jonas Bernoulli assuming the role of maintainer in 2013.[8] Since its release, Magit has seen a high degree of community involvement, with 350 individuals[9] having contributed code to this free software project as of September 2020.
In 2018 Magit underwent a Kickstarter funding campaign[10] which aimed to fund the maintainer for a year of work. The fundraising was successful and resulted in the project being the 27th most funded software project on Kickstarter.[11] Since the Kickstarter funded period expired donations are encouraged to support the authors development via direct payments, GitHub's sponsorship program and various other crowdfunding services.[12]
Functionality
Magit aims to encapsulate the entire functionality of Git,[13] and has interfaces for workflows such as:[14]
- Cloning a repository, and fetching/pulling from it
- Staging, unstaging, and discarding changes in the worktree
- Creating commits and pushing them to a remote
- Creating branches, and either merging or rebasing onto them
- Magit makes use of Emacs' Ediff to provide 3-way-merge functionality
- Browsing and bisecting the commit history
- Creating and applying patches
- Adding notes and tags to commits
Forges
Magit's Forge provides integration with a number of forges,[15] namely GitHub and GitLab.[16]
Partial support is also listed for: Gitea, Gogs, Bitbucket, Gitweb, Cgit, StGit and SourceHut.
Forge currently allows for[17]
- Fetching topics and notifications
- Listing topics, issues, pull-requests, notifications, and repositories
- Creating issues, pull-requests (PRs), PR from an issue, PR reviews, and forks
Reception
Magit is favourably covered in a number of blog posts and tutorials and a talk delivered by former Emacs' maintainer John Wiegley.[18] [19] [20] It is considered by some to be a "killer app" for Emacs.[21]
Magit is included by default in the Emacs configuration frameworks Spacemacs and Doom Emacs.[22] [23]
There has been interest in including Magit as a built-in feature package in Emacs, but there are issues with obtaining FSF copyright assignment from all contributors to the project.[24]
Notes and References
- Web site: How to pronounce Magit? (Magit User Manual) . 2024-09-15 . magit.vc.
- Web site: Emacs and Magit . Jonathan . Corbet . LWN.net . July 12, 2017 .
- Web site: magit. Milkypostman's Emacs Lisp Package Archive. 2020-09-20.
- Web site: Current List of Packages . 2024-09-15 . Milkypostman's Emacs Lisp Package Archive.
- Web site: Transient commands . GitHub. 2020-09-17.
- Web site: Magit, the magical Git interface . Jonas . Bernoulli . EmacsAir. 2017-09-01.
- Web site: magit/magit.el . GitHub. 2020-09-17.
- Web site: Magit 1.4.0 Release Notes. GitHub. 2015-07-01. 2020-09-20.
- Web site: GitStats - magit. magit.vc. 2022-03-08.
- Web site: It's Magit! The magical Git client. . 2 October 2018 .
- Web site: Discover » Technology / Software » Most Funded - Kickstarter . 2020-09-17.
- Web site: Please help making it better.
- Web site: It's Magit! A Git Porcelain inside Emacs . magit.vc . Jonas. Bernoulli . 2022-01-02.
- Web site: Top (Magit User Manual). magit.vc.
- Web site: Improve your workflow with Forge . Thomas . Heartman. 16 March 2020 .
- Web site: Forge User and Developer Manual. magit.vc.
- Web site: Usage (Forge User and Developer Manual). magit.vc.
- Web site: How to use Magit to manage Git projects . opensource.com . Sachin . Patil.
- Web site: Magit – A textual git interface . itemis . Gunther . Bachmann.
- Web site: It's Magit! . YouTube . John . Wiegley . January 2019 .
- News: Corbet . Jonathan . 2017-07-12 . Emacs and Magit . 2026-01-12 . LWN.net . en-US.
- Web site: Spacemacs - source control layer . GitHub . 2020-09-19.
- Web site: Doom Emacs - default modules file . GitHub . 2020-09-19.
- Stallman . Richard . Re: In support of Jonas Bernoulli's Magit . emacs-devel . 5 July 2017 . 2020-09-19 . Richard Stallman.