查看提交修改的内容。

通常需要检查提交修改了什么,相应的命令有:

git日志

git show

使用git log打印出所有提交的提交hashed,然后可以使用git show通过提交hashed查询这个提交的内容。

1,查询最新提交的内容。

git show

2.查看指定提交的内容。

git show commitId

3.在提交中检查特定文件的修改。

git显示commitid文件名