Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What do I need to install to be able to do something like the lines below in Ubuntu 11.04?

M-x git-status
git-commit-file command (c key)
git pull
git push
share|improve this question
up vote 9 down vote accepted

emacs has inbuilt support for git. If you are using old version of emacs (say 22.1) you might want to install 'magit' plugin. I like using magit in any version since it is way better than the generic inbuilt.

here are few key bindings generate (got by pressing C-x v C-h in a git repo dir)

Global Bindings Starting With C-x v:  
key             binding  
---             -------  

C-x v +     vc-update  
C-x v =     vc-diff  
C-x v D     vc-root-diff  
C-x v I     vc-log-incoming  
C-x v L     vc-print-root-log  
C-x v O     vc-log-outgoing  
C-x v a     vc-update-change-log  
C-x v b     vc-switch-backend  
C-x v c     vc-rollback  
C-x v d     vc-dir  
C-x v g     vc-annotate  
C-x v h     vc-insert-headers  
C-x v i     vc-register  
C-x v l     vc-print-log  
C-x v m     vc-merge  
C-x v r     vc-retrieve-tag  
C-x v s     vc-create-tag  
C-x v u     vc-revert  
C-x v v     vc-next-action  
C-x v ~     vc-revision-other-window  
share|improve this answer
So if I do "C-x v v" to register and "C-x v v" again to commit, how to I do a "git push" to master remote afterwards? – 719016 May 23 '11 at 13:46
@avilella, if you want to push & pull please install magit. Magit has push, pull commands and interactive status buffer which is very handy to look at your changes. here you can find my settings for magit – kindahero May 23 '11 at 18:33

In 12.04 and 14.04 git-status requires:

# apt-get install git-el

I would be surprised if that was not also true for 11.04 when this question was first asked 3 years ago.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.