A conflicted merge ends one of two ways.
Back out. git merge --abort puts everything back as it was before the merge:
git merge --abort
git status
On branch main
nothing to commit, working tree cleanResolve. Edit the file into the version you want, with every marker line deleted. Then git add marks it resolved, and git commit makes the merge commit:
nano README.md# Monster Market
Open 8 to 9. ← your call: a mix of both sidesgit add README.md
git status
On branch main
All conflicts fixed but you are still merging.
(use "git commit" to conclude merge)
Changes to be committed:
modified: README.md
git commit
hint: Waiting for your editor to close the file...Git suggests the message Merge branch 'feature/late'. Save it, and the merge is done:
[main 0cad88d] Merge branch 'feature/late'The resolved file can be one side, the other, or a mix. That's a decision about the code, so read both sides before you choose.
Objectives
- Start merging the redesign.
- Back out of it.
- Merge the summer sale, resolving the conflict.