This was the first snapshot of my git repository

In the master branches, the m1 file contains
L1
In dev branches, file m1 contains
L1 L2
If I try to combine dev from master , this will lead to a conflict.
$ git checkout master Switched to branch 'master' $ git merge dev Auto-merging m1 CONFLICT (content): Merge conflict in m1 Automatic merge failed; fix conflicts and then commit the result. $ git diff diff
Although I did not change line 2 from m1 to master , how did this lead to a conflict?
To check the actual contents of a file and make sure that this is caused by spaces:
On the master branch
git branch dev * master $ xxd m1 0000000: 4c31 0a L1.
On the dev branch
$ git checkout dev Switched to branch 'dev' $ xxd m1 0000000: 4c31 0a4c 320a L1.L2.
Here is the script I used to create this repo.
#!/bin/bash mkdir git_demo cd git_demo git init touch m1 git add . git commit -m "Added file: m1"
source share