Introduction to Emacs magit

Source: Internet
Author: User
Tags version control system
Introduction to Emacs magit

---------------------

1. What is magit?


Before introducing magit, let's take a look at what git is. Git is an open-source version control software developed by Linux Torvalds to help manage Linux kernel development, it is a fast and Scalable Distributed version control system. It has a rich set of commands and provides advanced operations and full access to internal systems. Magit is only an encapsulation of git calls, allowing you to easily use git in Emacs. In magit, you can use Emacs to check and modify git repositories; you can perform the commit operation on the tracked file, view the modification history in Emacs, and perform other operations. It should be noted that magit is not a full git package, but provides some common git calls.


2. Quick Tips

* M-x magit-status switch to the status buffer of that repository use this command to view the GIT status. The command in git is GIT status.
* S to stage files: change the status of untracked or unstaged files to stage mode,
* C to commit (type in your commit message then c-c to save the message and commit) commit all staged files to the index repository.
* P to do a git push update remote refs along with associated objects
* F to do a git pull fetch from and merge with another repository or a local branch
* Tab toggle hidden status of current section is used to convert and display some information about the current file.
* I ignore file this will add the filename to The. gitignore file. Ignore the version control of the current file, such as some temporary files
* I ignore file this will add the file to. Git/infor/exclude
* C-h m magit help information

3. Reference

Http://www.emacswiki.org/emacs/Magit

Http://philjackson.github.com/magit/

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.