Can anyone kindly explain me what is going on here >
git log shows me that 'edit cm.api.post' is the HEAD of Broadcast-feature branch. However the graph shows there are other commits on the same branch as well.
Note: This graph is of our 'master' branch (left-most line is master). When I view graph of 'Broadcast-feature' only then it shows fine with no extra commits
Git stores history as a graph of snapshots of the entire repository. These snapshots, called commits in Git, can have multiple parents, creating a history that looks like a graph instead of a straight line.
The colors are merely meant to help you view the lines as distinct from other lines. To answer question #1, they are assigned not pseudo-randomly, but rather sequentially, each time git log --graph picks a new "column number".
For those coming from Google looking how to fix the commit order for the git-flow: choose "Date Order" instead of "Ancestor Order":
Just scroll up your graph a little bit further to see in what branch those commits end up.
Someone created another branch starting at "broadcast-feature". The commits shown are the commits contained in that branch.
Remember: In git a "branch" is not much more than a label for some commit.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With