Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have cloned a Git repository and would like to visualize the different branches and merges. I ran the following command.

git log --graph --full-history --all --color \
        --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s"

to get the following output

enter image description here

and this

enter image description here

How do I read this? What is the significance of * / \ and |? Also, is there any way to filter out the only the branching and merging from the git log command by removing the code commits?

share|improve this question
up vote 0 down vote accepted
+100

Star must show you branch, to which commit belongs (it multibranch tree)

| / \ is just an attempt to draw DAG (see d7382a7 + b5b217d together f.e)

For merge-only commits all is bad, you can try

  • --grep=pattern

Limit the commits output to ones with log message that matches the specified pattern (regular expression).

or get full log, log without merges (--no-merges) and subtract somehow 2-nd from first

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .