Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

up vote 8 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? –  213441265152351 May 23 '11 at 13:46
2  
@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

Your Answer

 
discard

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.