emacs

Magit

Introduction#

Magit is an interface to the version control system Git, implemented as an Emacs package. It allows you to interact with git in Emacs.

Remarks#

Magit is an interface to the version control system Git, implemented as an Emacs package. Magit aspires to be a complete Git porcelain. While we cannot (yet) claim, that Magit wraps and improves upon each and every Git command, it is complete enough to allow even experienced Git users to perform almost all of their daily version control tasks directly from within Emacs. While many fine Git clients exist, only Magit and Git itself deserve to be called porcelains.

Note that Magit can interface itself to Github (with Magithub, see also Github integration in Emacs) and that Emacs also has packages to work with Gitlab, Bitbucket and others.

Installation

You can install Magit from MELPA with:

M-x package-install RET magit RET

Basic usage: commit unstaged edits within an existing repo

M-x magit-status
s RET <file-to-stage> RET
c c <commit message>
C-c C-c
q

This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow