In this exercise, you'll practice resolving a merge conflict.
This is a line you will change!
For this exercise, complete the following steps:
-
You should have cloned this module repository. Make sure you are on the
master
branch, and that all changes are committed. -
Create and
checkout
a new branch calleddanger
-
On the
danger
branch, use Atom or another text editor to change the above block-quoted line so it contains the word "Warning!" It should still be in a block-quote. -
commit
your change with an appropriate commit message. -
checkout
themaster
branch again. -
Now change the above block-quoted line so it contains your favorite movie quote. It should still be in a block-quote.
-
commit
your change with an appropriate commit message. -
Use
git merge danger
to merge thedanger
branch into themaster
branch. This should cause a merge conflict -
Don't panic
-
Use Atom or another text editor to resolve the merge conflict You will need to make the file look exactly as you want the code to appear, includig removing the
<<<<<<
,======
and>>>>>>
. -
Be sure to
add
andcommit
that you've resolved the conflict. -
Use
git status
to confirm that everything is now merged.