Queue
Queue

Reputation: 456

Github network graph doesn't show branch

Why is the yellow-branch not jutting out and then back in on the second to last commit?

I made a branch via the git command line and took the following steps:

  1. Made new branch
  2. Added feature
  3. Committed a few times and pushed
  4. git checkout master
  5. git merge yellow-branch
  6. git push
  7. git branch -d yellow-branch

While I was working on the yellow-branch, the network graph was correctly displaying a separate line beneath the master branch for yellow-branch. Was it because I used the cli and not the point and click method on the github website?

yellow branch

EDIT

I was looking at another repo that has the branches jutting out (below). The master branch has at least one commit to that is made while the other branch is not yet merged. Maybe this branch jutting out only occurs while one branch is not even with its parent branch?

multiple branches

Upvotes: 2

Views: 1114

Answers (1)

Queue
Queue

Reputation: 456

This is expected behavior because both branches have the exact same commit history. The branches would remain separate in the network graph representation if they had a divergent history.

Upvotes: 3

Related Questions