You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lesson_03/README.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,22 @@ npm run check
52
52
PROVIDER_NAME=<Your provider name here> npm run test
53
53
```
54
54
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.
0 commit comments