git log filename
其中filename需要为 Path From Repository Root

可以看到fileName相关的commit记录
git log -p filename
可以显示每次提交的diff

git show commitId filename
只看某次提交中的某个文件变化,可以直接加上filename
其中filename需要为 Path From Repository Root

可以看到fileName相关的commit记录
可以显示每次提交的diff

只看某次提交中的某个文件变化,可以直接加上filename