Generated files (`CHANGELOG.md`, lockfiles) conflict in almost every merge.
IntermediateTroubleshootingMerge and Rebase Problems
Answer
Likely causes → Several branches append to the same region of a file, or tooling rewrites the whole file.
Diagnose → git log --oneline -20 -- CHANGELOG.md shows how often it changes; git diff --name-only --diff-filter=U during merges.
Fix → For append-only files: .gitattributes with CHANGELOG.md merge=union keeps both sides. For generated files, resolve source files then regenerate. Or stop editing the file by hand: generate the changelog at release time.
Prevent → Generate changelogs from commit history (release-please, changesets) rather than editing in every PR.
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