The following is an excerpt from the 3rd Edition of the O’Reilly and Associates classic Learning GNU Emacs, regarding Emacs’ “vc-mode”, which I’ve been using more often of late:
12.5. VC Command Summary
To give you the flavor of the other things VC can do for you, Table 12-1 provides a summary of VC commands. Each one will be explained in detail, but you can probably guess some of their actions from the command names.
Table 12-1. VC commands
| Keystrokes |
Command name |
Action |
| C-x v v |
vc-next-action |
Go to the next logical version control state. |
| C-x v = |
vc-diff |
Generate a version difference report. |
| C-x v u |
vc-revert-buffer |
Throw away changes since the last checked-in revision. |
| C-x v ~ |
vc-version-other-window |
Retrieve a given revision in another window. |
| C-x v l |
vc-print-log |
Display a file’s change comments and history. |
| C-x v i |
vc-register |
Register a file for version control. |
| C-x v h |
vc-insert-headers |
Insert version control headers in a file. |
| C-x v r |
vc-retrieve-snapshot |
Check out a named project snapshot. |
| C-x v s |
vc-create-snapshot |
Create a named project snapshot. |
| C-x v c |
vc-cancel-version |
Throw away a saved revision. |
| C-x v a |
vc-update-change-log |
Update a GNU-style ChangeLog file. |