Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to compare newest commit to oldest commit in gitk

Tags:

gitk

When I do gitk --follow <filename>, the left pane lists all the commits of the given filename.

If I click one of those commits, the bottom-left pane (just below the commit/branch/tag list), shows a diff between this selected commit and the previous one.

Is there a way to tell gitk to show a diff between this selected commit and the oldest commit? (i.e. the one at the bottom of the list)

like image 681
WinWin Avatar asked Oct 18 '25 15:10

WinWin


1 Answers

Select the new commit, then right-click the old commit (without selecting it first) and choose "Diff this -> selected".

like image 197
nandhp Avatar answered Oct 22 '25 04:10

nandhp



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!