brewly — Ch.3 · Your first conflict
Exercise 7 of 9
Before you start
Merge conflicts
If two commits change the same lines, git cannot choose. It stops and writes both versions into the file, between markers.
Between <<<<<<< and ======= is your version (current). Between ======= and >>>>>>> is theirs (incoming).
Decide what the file should say, using the buttons above the block. Then git add the file to mark it solved, and commit to finish the merge.
- git status
- which files are in conflict?
- git add <file>
- mark a file as solved
- git commit
- finish the merge; keep the suggested message
Getting and sharing
First bring in the server’s commit, then push once the merge is finished.
- git pull --no-rebase
- fetch and merge
- git push
- share the result
You can reopen this any time with “Lesson”.
# BrewlyOrder coffee ahead.## Team- Maya (lead)- Alex (frontend)
Graph
- b93137c Raise the flat white priceHEAD → main
- 1354d06 Add menu pageorigin/main
- 619eb3b Style the order button
- 5fc44ac Initial commit