Back
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.
To show the name of the branch in git log you can use decorate option:
git log --graph --all --decorate
I will give the names of commits that are pointed to tags or branches.
Refer: https://git-scm.com/docs/git-log#Documentation/git-log.txt---decorateshortfullautono
31k questions
32.8k answers
501 comments
693 users