Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要针对其基础生成一个提交补丁。该提交上已标记了一个标签。所以就像在 939023 上我做了一个提交,现在它变成了 213232,我将用标签标记 213232。现在给定标签,我需要找出 213232 和 939023 之间的差异。
我的意思是我需要一种方法来生成其标签被赋予其基础的任何提交的差异。
有任何想法吗?
git diff 939023..213232
git diff <commit> <commit>~
这将显示提交与其父级之间的区别(假设您说“base”时是指父级)。
较短的版本:
git show <commit>