git flow - Demystify this git log graph -


please me understand why git log shows additional purple line merge develop branch.

we use gitflow blue line represents commits directly develop. yellow line master branch merge in releases. other lines releases or hotfixes.

in scenario bright green line hotfix created off of master branch. there 1 commit on hotfix branch , "finished" (i.e. merged develop , master). commit merge in master makes sense me since see bright green line merge yellow (master) line. doesn't make sense me introduction of pink line shows merge of hotfix branch develop branch. expect bright green line terminate blue line. graph makes develop branched @ "throw exception" commit when wasn't.

git log looks similar (there dark blue line in there that's hard see).

enter image description here

i have theory wanted confirmed. when committed change "added raygun integration" locally, there outstanding change hadn't fetched , merged in origin (the hot fix integration). think pink line shows diverge because "added raygun integation" commit before merged hot fix commit. develop branch reintegrated when merged origin local , pushed. if case, if had pulled outstanding commit origin first, committed change, "merge branch 'hotfix/2.5.1' commit show merging blue line?

your theory correct. there's not else add except in git, word "branch" ambiguous: there branch names develop, master, , hotfix/2.5.1, , there branching , merging lines drawing commit graph. branch name identifies particular commit being "the tip commit branch", commit may on number of other branches well. merge adds new commit draws lines @ least 2 existing commits.

these automated graph-drawers allocate new color secondary merge lines. is, pick 1 side of merge (the "first parent" side) "main" line , keep color going previous commits, use different color other side. since there's merge in there, color.


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -