Demo, all content is generated
Question

Users saw '<<<<<<< HEAD' on my homepage

Solved · 721 views · asked by sunita_d · edited

Embarrassing. A customer sent me a screenshot: the about section on my site showed

<<<<<<< HEAD
We help small bakeries...
=======
We help independent bakeries...
>>>>>>> feature/new-copy

The content lives in content/about.md. I had a merge conflict last week and Cursor said it resolved it. The build passed so I never noticed.

What I’ve tried

Fixed that file by hand. Now I'm scared there are more of these.

Comment
Could be more of those. Run a grep before anything else. jonas_k · edited
Happens to the best of us. Thanks for posting, I just found one in my own README. thandeka · edited

2 answers

Marked as helpful by the asker
jonas_k · edited

Find any others:

git grep -nE '^(<<<<<<<|=======|>>>>>>>)( |$)'

Code files would fail the build with those markers, but markdown, JSON strings in CMS content and HTML templates don't, so they slip through.

Stop it from happening again:

  1. Before committing a merge: git diff --check reports leftover conflict markers.
  2. Add that to CI so a PR with markers fails:
    - run: "! git grep -nE '^(<<<<<<<|>>>>>>>)( |$)'"
  3. When Cursor says "resolved", open the file and look. The editor's merge view shows remaining conflicts, the chat message doesn't.
Comment
Found one more in the FAQ. Fixed, CI check added. sunita_d · edited
git diff --check also catches trailing whitespace, so expect some noise the first time. wes_codes · edited
bea_quinn · edited

In VS Code/Cursor the Source Control panel lists files with unresolved conflicts under 'Merge Changes'. If that section is still there, you're not done.

Comment