Output of git branch in tree like fashion

Right now, when I type “git branch”

it lists my branches in an arbitrary order.

What I would prefer would be if “git branch” listed my output in a tree like fasion, somethign like:

master
|-- foo
  |-- foo1
  |-- foo2
|-- bar
  |-- bar4

Where here, foo & bar were branched from master; foo1 & foo2 were branched from foo; bar4 was branched from bar.

Is this easy to accomplish?

[Command line utilities only. This needs to fit into my zsh/vim workflow.]

6 Answers
6

Leave a Comment