git有用基本指令

1、git log -- filename(git log filename)
可以看到该文件相关的commit记录

2、git log -p filename
可以显示该文件每次提交的diff

3、git show comit_id filename
可以查看某次提交中的某个文件变化
原文地址:https://www.cnblogs.com/cjjjj/p/13468185.html