0 votes
1 view
in Devops and Agile by (29k points)

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.

1 Answer

0 votes
by (49.5k points)

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

Related questions

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...