12

Can anyone kindly explain me what is going on here >

enter image description 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

michas
  • 25,361
  • 15
  • 76
  • 121
neebz
  • 11,465
  • 7
  • 47
  • 64
  • 1
    Try this [git branch --contains](http://stackoverflow.com/a/1419637/654369) to find branches that contain latest commit from `Broadcat-feature` branch. `git branch --contains Broadcast-feature`. It seems like you have another branch based on `Broadcast-feature` branch. – Max Komarychev Apr 05 '14 at 08:00
  • How did you create that graph shown in the screenshot? – michas Apr 05 '14 at 08:04
  • 2
    @michas, as for me it looks similar to SourceTree. – Max Komarychev Apr 05 '14 at 08:06

2 Answers2

5

For those coming from Google looking how to fix the commit order for the git-flow: choose "Date Order" instead of "Ancestor Order":

Screenshot

Max Malysh
  • 29,384
  • 19
  • 111
  • 115
2

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.

michas
  • 25,361
  • 15
  • 76
  • 121
  • when a new branch is created, shouldn't a new color line branch off from there ? – neebz Apr 05 '14 at 09:48
  • 3
    No, actually there is no "real" branch in git. They are really just labels for commits. The "branch" your are thinking of, is only implicitly given by the ancestors of that commit. Those lines only indicate that one commit is the parent of the other. The colors are drawn by sourcetree to make it easier to follow long lines. – michas Apr 05 '14 at 21:37