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?
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.
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.
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).
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With