Production failed to start, and the file contains `<<<<<<< HEAD` lines that were committed.
BeginnerTroubleshootingMerge and Rebase Problems
Answer
Likely causes → Conflict markers were left in the file, staged with git add ., and committed without anyone reading the diff.
Diagnose →
git grep -nE '^(<<<<<<<|=======|>>>>>>>)( |$)'
git log -S'<<<<<<< HEAD' --oneline -- path/to/file
Fix → Resolve the file by hand (use git show <merge-sha>^1:path and ^2:path to see both sides), commit the fix, and deploy. If it is on shared main, fix forward quickly.
Prevent → Use the check-merge-conflict pre-commit hook and run linters and tests in CI before merge.
More on Merge and Rebase Problems
`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`CONFLICT (file/directory): There is a directory with name docs in HEAD. Adding docs as docs~feature instead.`Intermediate