merge - git branch merging details -


i noticed following branch merged master branch. have dev , master stream. branch merged dev how found in master when review master issuing git log origin/master command.

   commit 8123e23e3322b02b9871fea4d152e07ec5b9361443520d2    merge: e4d499a 5ef2bd6    author: devuser<user1@mydomain.org>    date:   fri jul 01 16:24:53 2013 -0700     merge branch 'my_branch' dev 

is there way figure out how master branch?

example:

user run following:   git checkout master   git checkout -b my_branch   git add .   git commit -m "my work done"   git checkout dev   git merge my_branch   git push   user b run following:   git checkout my_branch   git pull   git checkout master   git merge my_branch   git push 

in git log, can find out if user b did merge or user ?

please attached picture. says "merge branch "my_branch" dev" merging master. reading right?

enter image description here

iin git, "branch" can mean 2 things. actual commits in line of development or label tucked onto commit , updates when new commit made (the green boxes see in screenshot).

the label points recent commit in branch (the tip). labels can freely moved around , set commit like. can have multiple labels point @ exact same commit.

you can arrive in situation via 2 ways: branched off master of dev, or master contained (already merged) in dev, master fast-forwarded during next merge.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -