Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git rebase resolve conflicts again and again?

Tags:

every time i git rebase my patchset on a new version of the original, do i have to manually resolve the conflicts again and again?

like image 338
koo5 Avatar asked Aug 18 '10 21:08

koo5


People also ask

Why does the same conflict reappear when I use git rebase?

Just a regular merge. The difference is that git rebase merges one commit at a time on top of the previous one starting from the common parent. git merge merges two commits – with their entire set of changes – as a single operation, so you only have to resolve the conflicts once.

Does git rebase resolve conflicts?

If the change that you submitted has a merge conflict, you need to manually resolve it using git rebase. Rebasing is used to integrate changes from one branch into another to resolve conflicts when multiple commits happen on the same file.

Can git rebase cause conflicts?

When you perform a git rebase operation, you're typically moving commits around. Because of this, you might get into a situation where a merge conflict is introduced. That means that two of your commits modified the same line in the same file, and Git doesn't know which change to apply.


1 Answers

Check out git-rerere.

like image 196
Carl Norum Avatar answered Sep 29 '22 01:09

Carl Norum