Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

how to read git graph in bitbucket commit history

Mohit Sharma
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 20, 2023

Hi, I would like to understand how to read and interpret a git graph. See for example the following image. I have the following questions: 

1. Does color have any meaning here like green is for master, red for develop etc etc or are they just there to ease readability?

2. Does the line on leftmost (in this case green one) represent the branch I have selected from thee dropdown menu? 

Screenshot 2023-11-21 at 11.47.36 AM.png

1 answer

1 accepted

1 vote
Answer accepted
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 21, 2023

Hello @Mohit Sharma ,and welcome to the Community!

For your first questions about the colors, bitbucket walks through the list of commits in the repository and draws colors in this order: Green, Red, Blue, Teal, Yellow, Purple.

The branch with the most recent commit will start with green, and then it draws from there in commit order.

Based on that, for your second question, when you filter the commit list by a branch, only commits reachable from that branch will be presented, so the green line (the first color that is used to draw) will represent the commit parent history for the selected branch. Other colors will represent other branches.

You can also find further details on how the commit-graph is handled in this answer to a similar question.

Thank you, @Mohit Sharma !

Patrik S

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events