Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to view git log in Emacs?

Tags:

git

emacs

Emacs shows me conveniently the git log of a single file under git with C-x v l. But how can I view the entire history? In the shell I do git log in a directory under git. Is there a more emacs-affine way to do this?

like image 411
false Avatar asked Nov 05 '15 11:11

false


People also ask

What is Emacs in git?

Magit is a complete text-based user interface to Git. It fills the glaring gap between the Git command-line interface and various GUIs, letting you perform trivial as well as elaborate version control tasks with just a couple of mnemonic key presses.

How do I commit in emacs?

After having selected the files you want to commit, you type either c or C which brings up a special buffer *cvs-commit* . You type in the log message describing the changes you're about to commit (see Editing a Log Message). When you're happy with it, you type C-c C-c to do the actual commit.


2 Answers

C-xvL - vc-print-root-log

I found this easily by asking Emacs to show me the commands with key bindings using the C-x v prefix:
C-xvC-h

You can also easily find this information in the manual. The specific node is:
C-hig (emacs) VC Change Log

Personally I use Magit, though (and recommend that you do likewise).

like image 181
phils Avatar answered Sep 30 '22 18:09

phils


C-x v d lets you open up a VC buffer for a whole directory, where you can select some files (or a directory) and then hit l to get the log of these files (or that directory).

like image 32
Stefan Avatar answered Sep 30 '22 18:09

Stefan