Use magit to manage git in Emacs

Source: Internet
Author: User

Many tools support managing git in Emacs. The magit project on GitHub is very active, so I chose it.

Here is the official documentation: http://magit.github.com/magit/magit.html

Download the latest version: https://github.com/magit/magit/downloads from here

Decompress:

 
Tar zxvf magit-1.1.1.tar.gz

After entering the directory, run:

 
Make & sudo make install

The installation script creates and places the file in the following directory:

/Usr/local/share/Emacs/Site-lisp

Then add

(Require 'magit)

To ~ /. Emacs file

Restart Emacs.

Try it now. Open a file of the GIT project, such as my X file.

Run magit-status. The displayed information in the right window is as follows:

Remote: Master @ origin (SSH: // csfreebird@10.112.18.189: 29418/appengine. Git) Local: Master ~ /Work/189/appengine/head: d441c7e merge branch 'master' of SSH: // 10.112.18.189: 29418/appengine

Very clear.

In this window, type C-H m to view magit help information.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.