开发者

Why is there no merge conflict in git?

开发者 https://www.devze.com 2022-12-07 18:08 出处:网络
I have two branches, master and demand_prediction_module. contents of master branch are: co开发者_开发问答ntents of demand_prediction_module branch are:

I have two branches, master and demand_prediction_module.

contents of master branch are:

Why is there no merge conflict in git?

co开发者_开发问答ntents of demand_prediction_module branch are:

Why is there no merge conflict in git?

when I try to merge demand_prediction_module into master I should get a conflict for the file dem_prediction_module.py. However,

Why is there no merge conflict in git?

After merging, the dem_prediction_module.py looks like below. The extra pass statement is deleted. but as you can see lines 4 to 7 are different in the 2 files above so why did they NOT give a merge conflict? I want to be able to choose which of the changes I want to keep.Preferrably the one from demand_prediction_module branch.

Why is there no merge conflict in git?

EDIT Below is the commit history.

Why is there no merge conflict in git?

I deliberately checkedout to demand_prediction_module branch then made a commit in order to see what happens during and after merging.


It is showing in your merge command output. Merge made by 'ort' strategy. for this ort strategy. you can refer this link

0

精彩评论

暂无评论...
验证码 换一张
取 消