Explore Courses Blog Tutorials Interview Questions
0 votes
in DevOps and Agile by (29.3k 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 (50.2k 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.


Related questions

Browse Categories