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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.