Magit for non emacs-users
  •  10 July 2013
  •  emacs 

Magit is one of the best tool for working with git. However, it’s a package ship with Emacs, not a standalone application, which prevents many non-emacs people from using it because they don’t want to deal with all the configuartion in the init file. Luckily, there is a python script called magit-wrapper, which can help that kind of people and act as a gateway drug to Emacs. Moreover, Emacs users can use it for working with files on a remote server to avoid having to install all the Emacs GUI and the full user init .emacs.d folder.


This is for Emacs in terminal version 23+. OSX’s default one is 22. To check for the version of Emacs that you are using, simply type

$ emacs --version

To use magit-wrapper, first you need to clone the repository into your local computer

$ git clone --recursive /path/to/magit-wrapper

After finishing cloning, cd to your project folder, run

$ /path/to/magit-wrapper/

For the convinience, you should make a symbolic link to the file to somewhere in PATH variable so that your shell can easily find it and you don’t have to type all the path to everytime you need need to use it

$ sudo ln -s /absolute/path/to/magit-wrapper/ /usr/local/bin/magit

Now, instead of typing /path/to/magit-wrapper/, you can just simply type in

$ magit

This is just a temporary solution. For the best experiment, start to learn how to use Emacs :D

The author of this is Mr. Nguyen Tuan Anh. You can contact him at [email protected]