本文转自我的博文 查看git历史的几种方法
git log --follow -p <filename>
--follow
参数表示跟踪文件名修改
-p
参数表示显示每个提交的不同
这种方式没有界面,适合在没有 GUI 的 linux 系统上使用
使用 gitk
gitk <filename>

使用 git-history
npx git-file-history <filename>
对于 nodejs 用户,可使用这个工具

使用 sourcetree
需要智能上网

选中文件,右键选择菜单 log select
网友评论