问题:
When I do git diff COMMIT
I see the changes between that commit and HEAD (as far as I know), but I would like to see the changes that were made by that single commit. 当我执行git diff COMMIT
我看到了该提交和HEAD之间的变化(据我所知),但我希望看到该单个提交所做的更改。
I haven't found any obvious options on diff
/ log
that will give me that output. 我没有在diff
/ log
上找到任何明显的选项,它会给我输出。
解决方案:
参考一: https://stackoom.com/question/1Bh7u/如何查看Git提交中的更改参考二: https://oldbug.net/q/1Bh7u/How-to-see-the-changes-in-a-Git-commit
来源:oschina
链接:https://my.oschina.net/u/3797416/blog/4306911