Interview Prep/Git & GitHub/Merge and Rebase Problems

`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.

All Git & GitHub questions Roadmap: Git & GitHub

More on Merge and Rebase Problems