Relationship between n git branches

I would use:

gitk A C D

... there are probably other git GUIs that produce a prettier rendering of the commit graph, but I've always found gitk fine for this purpose. All the branches and tags are labelled in the "London Underground"-style representation:

A screenshot of gitk showing several merges and branches
(source: mark at mythic-beasts.com)


You can also use the --simplify-by-decoration option to gitk, since it understands all of the parameters that git rev-list does, for example:

gitk --simplify-by-decoration A C D

A screenshot of gitk with the --simplify-by-decoration option


You can give this a try:

git log --graph --all --decorate --simplify-by-decoration

It will only show commits that are branch heads or tagged.