Merge conflict when running 'git rebase' -


i on developer branch, , try execute git rebase remote/a_remote_branch see:

first, rewinding head replay work on top of it... applying: change #1 failed merge in changes. patch failed @ 0001 change #1 

my question why git rebase trying apply 'change #1'?

this because when git log, see 'change #1' in local branch, why git trying apply 'change #1' again when rebase?

the difference between merge , rebase rebase trying make based branch on newer version of parent branch. removes of branch commits, fast-forwards the latest parent commit, , tries re-apply changes. hence re-basing. if merge makes new commit pulls in of parent changes on top of work. conflicts (if any) in merge commit rather in existing branch work.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -