After `git pull` on a branch someone rebased, your history contains every commit twice.
IntermediateTroubleshootingMerge and Rebase Problems
Answer
Likely causes → Remote history was rewritten, so the old commits (yours) and the new ones (rewritten) have different SHAs. A merge pull combined both lines.
Diagnose →
git log --oneline --graph -20
git log --cherry-pick --left-right --oneline HEAD...origin/feature
Fix → If you have no local work: git reset --hard origin/feature. With local commits: git rebase --onto origin/feature <old-remote-tip> feature (find the old tip in git reflog show origin/feature). Undo the merge first with git reset --hard ORIG_HEAD.
Prevent → Use git pull --rebase on branches that might be rewritten, and tell the team when you force-push.
More on Merge and Rebase Problems
Production failed to start, and the file contains `<<<<<<< HEAD` lines that were committed.Beginner`error: you need to resolve your current index first`Beginner`fatal: You have not concluded your merge (MERGE_HEAD exists).`BeginnerRebase stops: `error: could not apply 1a2b3c4... Add retry` and later `No changes - did you forget to use 'git add'?`Intermediate`fatal: It seems that there is already a rebase-merge directory, and I wonder if you are in the middle of another rebase.`Intermediate`CONFLICT (modify/delete): config/old.yml deleted in HEAD and modified in feature.`Intermediate