`CONFLICT (add/add): Merge conflict in README.md`
IntermediateTroubleshootingMerge and Rebase Problems
Answer
Likely causes → Both branches created the same path independently (typical for the initial README or .gitignore).
Diagnose → git diff --diff-filter=U and git show :2:README.md, git show :3:README.md (stage 2 is ours, stage 3 is theirs).
Fix → Merge the two versions by hand, or choose one with git checkout --ours README.md / --theirs, then git add README.md and continue.
Prevent → For new repos, create the remote repo empty, or clone it first.
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