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.
我们将 git 用于 TFS。我正在寻找可以对两个日期和时间之间的所有提交进行本质上的 git-diff 的东西。我们知道我们可以手动构建一些东西,但是出于合规性的原因,如果它已经存在,它会更容易通过。
要显示单个提交的差异,请执行
git show $thatcommit
要显示从一个提交到任何其他提交的差异,请执行
git diff $theonecommit $theothercommit
要显示一组提交中的每一个的单独差异,请执行例如
git log -c -p master..topic # to get all the unmerged topic commits