merge conflicts in Git

Competing lines change merge conflict

merge is the point at which two lines of development reconverge(收斂).

the situation looks like two screenshots below:
這裏寫圖片描述
figure-(1)
the other from gitk:
這裏寫圖片描述
figure-(2)

To resolve this issue, must choose which changes to incorporate(合併) from different branches in a new commit. Rough/core procedures are what to list below:
(a)see&verify merge conflict in specific file
    like <<<<<<,=====,>>>>> conflict markers
(b)decide changes you want in the final merge by deleting conflict markers.
(c)add or stage changes
(d)commit

removed file change merge conflict

(as follow-up without encountering yet)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章