Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git: Visualize "tags" only

Tags:

git

I use tags to indicate releases (e.g. v1, v2, v2.1, v3, etc.). Is there a visualizer out there that only shows the relationship between tags? In other words, it collapses all the commits in between the tags to give a zoomed-out view of the releases.

like image 441
Ryuu Avatar asked Oct 29 '25 01:10

Ryuu


1 Answers

The closest to what you want is probably git log --tags --simplify-by-decoration. This says to traverse history starting at all tags, and treat any commit with a branch or tag as interesting.

To just focus on the commit graph, add --graph and --oneline, as well as --decorate to actually see the tags:

git log --tags --graph --oneline --decorate --simplify-by-decoration

Or in the gitk gui with:

gitk --tags --simplify-by-decoration
like image 188
Josh Lee Avatar answered Oct 31 '25 16:10

Josh Lee



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!