I have my git with commit history like:
master A--B
feature \C--D
I wanted to merge feature
branch into master
, so I intended to rebase feature
branch in order to have a clean commit history, and then make a merge request into the master
.
But when I ran git rebase master
, git required to resolve conflicts between C
and B
, then git add
, then resolve between D
and C
, and git add
again, which is exhausted. After that, the git log
at local feature looked like A--B--C--D
, which was what I wanted to be.
At that moment, I realized the local log was different from the remote counterpart, so I had to do git pull
again, then resolve conflicts although the code looked the same.
Did I do something incorrect? Any suggestions about a standard, efficient way to merge a feature
branch into the master
branch?