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.