`CONFLICT (file/directory): There is a directory with name docs in HEAD. Adding docs as docs~feature instead.`
IntermediateTroubleshootingMerge and Rebase Problems
Answer
Likely causes → One branch has a file called docs, the other has a directory docs/.
Diagnose → git ls-tree HEAD docs and git ls-tree feature docs show which side is the file.
Fix → Choose one layout. Keep the directory and move the stray file: git mv docs~feature docs/README.md (or delete it), then git add and continue.
Prevent → Coordinate repo layout changes and avoid names that turn from file into folder.
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