`CONFLICT (modify/delete): config/old.yml deleted in HEAD and modified in feature.`
IntermediateTroubleshootingMerge and Rebase Problems
Answer
Likely causes → One side deleted (or moved) the file while the other edited it.
Diagnose → git log --diff-filter=D --oneline -- config/old.yml finds who deleted it and why; git diff main...feature -- config/old.yml shows the edits.
Fix → Decide: keep the deletion (git rm config/old.yml), or keep the file (git add config/old.yml). If the file moved, apply the edit to the new location by hand.
Prevent → Announce file moves and deletions, and do renames in their own commits.
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 (file/directory): There is a directory with name docs in HEAD. Adding docs as docs~feature instead.`Intermediate