0

我们将 git 用于 TFS。我正在寻找可以对两个日期和时间之间的所有提交进行本质上的 git-diff 的东西。我们知道我们可以手动构建一些东西,但是出于合规性的原因,如果它已经存在,它会更容易通过。

4

1 回答 1

1

要显示单个提交的差异,请执行

git show $thatcommit

要显示从一个提交到任何其他提交的差异,请执行

git diff $theonecommit $theothercommit

要显示一组提交中的每一个的单独差异,请执行例如

git log -c -p master..topic    # to get all the unmerged topic commits
于 2015-04-17T00:08:37.403 回答