I created two branches, dev and feature.
Both of them contain the file conflict.txt and store different contents (the file is added and commited in each branch).
When I merge feature to dev branch, it conflicts as expected.
However, there are no hints inside the content of conflict.txt file as what normally happens when you have a conflict. It just contains the original content I edited on the dev branch without hints like:
<<<<<<< HEAD
issue1
=======
issue2
>>>>>>> issue2
Only one line plain text "issue1".
I ran the git diff
command and it shows the conflict.txt is a binary file. But it's not, and I think that may be the problem.
diff --cc conflict.txt
index 2bc0433,ca61243..0000000
Binary files differ
How can I fix it?
- OS: Windows11 22H2(Chinese Home Edition)
- Git:2.37.1.windows.1