I have a file called index.html in master branch. I create dev branch and switch into the dev branch
git branch dev
git checkout dev
I then edit index.html and commit the change
git commit -m "first change" index.html
I am still in the dev branch. Now I want master to have this new feature so I try to merge the dev branch into master
git merge master
but I get
Auto-merging index.html
CONFLICT (content): Merge conflict in index.html
Automatic merge failed; fix conflicts and then commit the result.
It seems I am stuck, I have to do git merge --abort but how can I ever do the merge?