tags:

views:

43

answers:

1

How can I show the name of branches in the output of git log?

For example with, git log --graph --all I get a nice overview of the commits, but get confused which line is master, and which is my branch for example.

+4  A: 

Try the decorate option.

git log --graph --all --decorate

It annotates commits which are pointed to by tags or branches.

Charles Bailey
However, it doesn't stack with `--pretty=format` option.
Pavel Shved
With `--pretty` you can use `%d` where you want the 'decorations'.
Charles Bailey