Room 5: The Conflict Canyon
Workshop Resources
Room 5: The Conflict Canyon
You enter a room with a deep chasm. Two bridges extend from either side but don’t quite meet in the middle. A sign reads: “Only by resolving conflicts can you cross.”
Your Mission
- Pull the latest changes from the original repository.
- Resolve the merge conflict that appears.
- Commit the resolution and push the changes.
Instructions
- Add the original repository as a remote:
git remote add upstream https://github.com/CodeDungeon/escape-room.git
- Fetch and merge the changes:
git fetch upstream
git merge upstream/main
- You’ll see a merge conflict. Open the conflicting file(s) and resolve the conflicts.
- After resolving, stage, commit, and push:
git add .
git commit -m "Resolve merge conflict"
git push origin main
Hint: Look for the conflict markers (<<<<<<<
, =======
, >>>>>>>
) in the files. Choose which changes to keep or combine them as needed.
Outstanding work! You’ve conquered the Conflict Canyon and completed all the challenges. You’re now a GitHub master!
Note: The actual input field and encryption functionality would need to be implemented separately, as Hugo doesn’t provide this out of the box.