Take the 2-minute tour ×

I am using the git-emacs to submit code to github throug Emacs. It is ok for add and commit, but it seems that git-emacs do not support the git push operation. When I type M-x git-push, it responds with "no such command".

share|improve this question
You can run git push in eshell. –  ceving Aug 25 at 14:33

3 Answers 3

By git-emacs, you can push in the following way:

  1. M-x git-cmd, which is bound to C-x g . ( In git-status window it is bound to .)
  2. type in push
share|improve this answer

This is an unfortunate side effect of the fact the built-in Emacs VCS support(vc-mode) is mostly built for tools like cvs, subversion, etc that have a totally different workflow. DVCS support was added fairly soon (in Emacs 23). I hope vc-mode will be improved in the near future. Until then...

As @khagler said Magit supports git push. Another solid option for you to explore is Egg.

share|improve this answer

You're right, it doesn't. However, magit can push.

share|improve this answer
so i turn to magit , but i still fail to push , it is ok to stage and commit , but when i type P P to do a git push , it just said: "git push -v ...... " in the console , it did not really push anything into the repository, could you help with this also? –  zolibra Dec 7 '12 at 6:01
There is a problem with github: github.com/magit/magit/pull/433 Check by pressing $ whether Magit hangs on login. Update to newest Magit, and if this doesn't help -- well pushing is just a couple of keystrokes in the shell... –  lukstafi Mar 18 '13 at 23:02

Your Answer


