`warning: Cannot merge binary files: assets/logo.png (HEAD vs. feature)`
IntermediateTroubleshootingMerge and Rebase Problems
Answer
Likely causes → Both branches changed the same binary file, and Git cannot do a textual three-way merge.
Diagnose → git diff --name-only --diff-filter=U and git log --oneline main..feature -- assets/logo.png.
Fix → Pick a version: git checkout --ours assets/logo.png or --theirs, or open both versions and produce a combined one. Then git add and continue.
Prevent → Use Git LFS locking (git lfs lock) for assets that cannot be merged.
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