how to avoid overriding the file from merged branch in git -


we have 3 branches master, develop , release. made changes in release branch's file , tried merge developer happened.

we have test.html in both branches developer , release , lost develop branch's file content after merging release. know caused this. used below commands:

>git checkout release >git checkout develop >git merge release 

no conflict lost develop branch file content. strange me. never happened before.

i tried merge cherry-pick , specific file merge nothing workout these commands overriding develop branch file content.

it's hard understand problem without log. if merge done without conflict, possibly fast-forward merge. might happen if release child of develop's head commit.

also, above commands merge release develop. meant?

please run following command , post results here:

git log --oneline --graph --decorate --all 

Comments

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -