The VC package is built into Emacs and provides some basic support for browsing file versions, browsing logs, checking out, committing, etc. VC commands are bound to C-x v
by default.
There are several commands to access other revisions. If you know what revision you want to open, press C-x v ~
(vc-revision-other-window
). To open the last revision that changed a given line, press C-x v g
(vc-annotate
), and press f
(vc-annotate-find-revision-at-line
) on the desired line. If you want to find and open a revision based on its log message, run C-x v l
(vc-print-log
) and press f
(log-view-find-revision
) when the cursor is on the desired commit.