I'm trying to follow a git branching strategy like the one in the image below:
However, when I branch from develop
into release
, and then merge the release
branch back into develop
and master
, the network graph on Github displays the following:
This makes it looks as if develop
was branched from release
, and not vice versa as it should be (especially once the release branch is deleted and its name no longer appears).
I followed the steps from this tutorial exactly:
git checkout -b dev
(while onmaster
)- make some changes and commit to
dev
git checkout -b release-1.0 dev
- make some changes and commit to
release-1.0
git checkout master
git merge --no-ff release-1.0
git checkout dev
git merge --no-ff release-1.0
Is there any way to get the Github network graph to display correctly? (either by changing a setting in Github or changing the steps taken to branch and merge)
git log --graph
does nearly the best possible with raw ASCII, IMO, but that's not very good. :-) The Pro Git book (git-scm.com/book/en/v2/…) links to git.wiki.kernel.org/index.php/… but I have not tried most of these. – torek Nov 29 '16 at 19:46