neeebzz
neeebzz

Reputation: 11538

Understanding Git Branches graph view

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

Upvotes: 12

Views: 15819

Answers (2)

Max Malysh
Max Malysh

Reputation: 31545

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

Screenshot

Upvotes: 7

michas
michas

Reputation: 26515

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.

Upvotes: 2

Related Questions