如何查看Git提交中的更改?

有些话、适合烂在心里 提交于 2020-10-18 04:59:25

问题:

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
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!