Viewing history with Gitk

We saw earlier how we can view the history (the DAG) and visualize it with the use of git log. However, as the history grows, the terminal representation of the history can be a bit cumbersome to navigate. Fortunately, there are a lot of graphical tools around Git, one of them being Gitk, which works on multiple platforms (Linux, Mac, and Windows).

This recipe will show you how to get started with Gitk.

Getting ready

Make sure you have Gitk installed:

$ which gitk
/usr/local/bin/gitk

If nothing shows up, Gitk in not installed on your system, or at least is not available on your $PATH.

Change the directory to the data-model repository from the objects and DAG examples. Make sure the master branch is checked out and pointing ...

Get Git: Mastering Version Control now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.