Course Tonight

Course Tonight

Did You Know?

We design Docy for the readers, optimizing not for page views or engagement

Chapter 40: Display commit history graphically with Gitk

Estimated reading: 1 minute 6 views

Section 40.1: Display commit history for one file

To display the commit history for a specific file, use the following command:

gitk path/to/myfile

Section 40.2: Display all commits between two commits

If you want to see the commits between two specific commits, let’s say d9e1db9 (the oldest ancestor) and 5651067 (the final descendant) in the commit chain, you can use the following command:

gitk --ancestry-path d9e1db9 5651067

Section 40.3: Display commits since version tag

If you have a version tag, let’s say v2.3, and you want to display all commits since that tag, you can use the following command:

gitk v2.3..

Using v2.3.. indicates all commits since the v2.3 tag. Gitk will display the commit history graphically, allowing you to explore the commits visually.

Leave a Comment

Share this Doc

Chapter 40: Display commit history graphically with Gitk

Or copy link

CONTENTS