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

前端 未结 3 860
鱼传尺愫
鱼传尺愫 2020-12-04 05:04

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,

3条回答
  •  悲哀的现实
    2020-12-04 05:42

    Try the decorate option.

    git log --graph --all --decorate
    

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

提交回复
热议问题