1、以图形化的界面显示文件修改列表 gitk --follow filename

2、可以看到该文件相关的commit
记录 git log -- filename (git log filename)
3、所有的git
命令都可以通过git manual
查看 git log --help
4、可以显示该文件每次提交的diff
可使用 git log -p filename
5、查看某次提交中的某个文件变化 git show commit-id filename
6、根据commit-id
查看某个提交 git show commit-id
网友评论