搜索
您的当前位置:首页正文

查看commit修改的内容

来源:二三娱乐

经常需要查看某次commit修改了哪些内容,与之相对应的命令有:
git log
git show
使用git log打印出所有提交的commit hashID,之后可以使用git show通过commit hashID查询这一次的commit的内容
1,查询最近一次commit的内容
git show
2,查看指定commit的内容
git show commitId
3,查看某次commit中具体某个文件的修改
git show commitid filename

Top