0

I've searched around for that and while there are plenty of ways to get such vizualization for all branches (Visualizing branch topology in git, Pretty git branch graphs), I can't seem to find a way to select a subset of branches in particular.

For instance I have 5 branches that have somewhat diverged, been merged, diverged again, cherry-picked, and so on, and now I'd like to get an idea of how they relate to one another (so presumably a common root, 5 different leafs and some join/fork among the branches).

Any idea how to go about getting that using basic git, or even gitk/gitx...?

Thanks!

Community
  • 1
  • 1
user422190
  • 117
  • 1
  • 5

1 Answers1

1

git log accepts multiple branch names on the command line, e.g. to see master, foo and bar you can use

git log --graph --decorate master foo bar

I don't often use gitk, but it seems to work there too:

gitk master foo bar
ChrisGPT was on strike
  • 127,765
  • 105
  • 273
  • 257