I recently discovered an extremely cool package called git-timemachine that allows you to step though the git history of the file you’re currently editing in Emacs.
Using it is pretty simple:
- visit a git-controlled file and issue
M-x git-timemachine(or bind it to a keybinding of your choice)
- use the following keys to navigate historic version of the file:
pvisit previous historic version
nvisit next historic version
wcopy the hash of the current historic version
qexit the time machine buffer
Here you can see
git-timemachine in action:
This package is bundled with Prelude.