git log filename
commit
git log -p filename
diff
git show 2239ca740735dcbd2c04cd76be2637a2a4b2cfb0 filename
注意: filename是指要查看的文件
filename