Treat git log as a book, exec git next
or git prev
to checkout the next or the previous commit.
- Clone this repository
- Execute command :
./install.sh
or
- Download the
git-paging-alias.txt
- Execute
git config --global --add include.path PATH/git-paging-ali.txt
git hist [<BRANCH_NAME> or <revision-range> [<options>]]
- show all history commitsgit swc-first
- switch the first commitgit swc-last
- switch the last commitgit swc-prev
- switch previous commitgit swc-next
- switch next commit
请查看博客文章 阅读开源代码小技巧 获得更多使用帮助。