Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does git rebase always conflict?

Tags:

git

git-rebase

Every time I try to rebase my branch, I get merge conflicts because some changes in my local repo conflict. The frustrating part is that those changes had been undone in subsequent commits.

Once again, I resolve them, commit and push my changes and everything is fine.

Then, next time I try to rebase the very same conflicts occur in the same files that I had resolved.

Why is this happening?

How can I fix it so these old commits don't cause merge conflicts again?

like image 660
Nate Reed Avatar asked May 08 '26 21:05

Nate Reed


1 Answers

please use following command to remember conflicts resolution

git rerere
like image 102
forvaidya Avatar answered May 10 '26 11:05

forvaidya