Skip to content

Commit

Permalink
Merge pull request #748 from turingschool/lk/merge-lesson
Browse files Browse the repository at this point in the history
Lk/merge lesson
  • Loading branch information
niksseif authored Dec 7, 2023
2 parents d09c4ee + f897917 commit 07ae09c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lessons/module-1/git-merge-conflicts.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ When you run into the merge conflict on GitHub, go ahead and create the PR, then

GitHub offers instructions for how to resolve a merge conflict through the command line (using your text editor). They are essentially the same steps as outlined above. Test out these instructions when you encounter a merge conflict.

<section class="note">
### Note

In VS Code, you may see a button that reads "Resolve in Merge Editor". This opens a GUI much like the GitHub merge conflict editor demonstrated briefly in the video at the beginning of the lesson.

You can experiment with that editor if you like, but for the same reason we don't advise that you become solely dependent on using the GitHub GUI for merge conflicts, don't become dependent on the VS Code GUI for merge conflicts.
</section>

## Best practices to avoid merge conflicts
- Do your edits/work on branches. Do not edit the main branch directly. Do not push to main.
- If you accidentally start coding on main, don't worry! You can create a new branch and it will bring those edits to the new branch.
Expand Down

0 comments on commit 07ae09c

Please sign in to comment.