Skip to content

Commit 0474f16

Browse files
authored
docs: adds details about dealing with merge conflicts (#101)
Signed-off-by: Anthony D. Mays <[email protected]>
1 parent ecdb020 commit 0474f16

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

lesson_03/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,22 @@ npm run check
5252
PROVIDER_NAME=<Your provider name here> npm run test
5353
```
5454

55+
### Dealing with merge conflicts
56+
57+
Since everyone needs to modify the same files for this assignment, you will most certainly encounter merge conflicts. To resolve this, here are the steps:
58+
59+
1. Sync the main branch of your fork and ensure that it is up-to-date.
60+
2. Use `git checkout main` and `git pull` to get the latest updates pulled down to your computer.
61+
3. Checkout your feature branch (e.g. `git checkout feature/lesson_03`).
62+
4. Run `git rebase main` on your feature branch to pull in the latest changes and deal with merge conflicts.
63+
5. Use the *Source Control* view in VS Code to identify files with conflicts. Click to open them and use the *Merge Editor* to resolve conflicts.
64+
6. Stage and commit the changed files.
65+
7. Repeat steps 5-6 until the rebase is complete.
66+
67+
An alternative approach is to open the PR and manually edit the conflicting files to work out any issues. This may be easier for some of you, but it can also be tricky to do if you don't know what you're doing.
68+
69+
Check out [this YouTube video](https://www.youtube.com/watch?v=OXtdxHTh2oY) for a quick explaination of what's going on.
70+
5571
[quizzes-folder]: ./quiz/src/quizzes/
5672
[quiz-folder]: ./quiz/
5773
[quiz-example]: ./quiz/src/quizzes/anthony_mays_quiz.ts

0 commit comments

Comments
 (0)