- Notifications
You must be signed in to change notification settings - Fork0
bm01wait/skills-resolve-merge-conflicts
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Learn why conflicts happen and how to resolve them.
Good start! Now let's look deeper at a merge conflict! 🔍
This can be intimidating, but have no fear, Git is smart when it comes to merging! Git only needs a human to decide how toresolve the conflict. Sometimes, the best way to resolve a merge conflict is to add content that's from both branches, or even something that isn't on either! This is why Git needs a human to look at the code and make the proper fixes.
- Open the pull request that you just created, we created a conflict for you. Have no fear!
- At the bottom of the page, under "This branch has conflicts that must be resolved", click theResolve conflicts button.
- Look for the highlighted sections that begins with
<<<<<<< my-resume
and ends with>>>>>>> main
. These markers are added by Git to show you the content that is in conflict. - Remove the changes made on the main branch by deleting all of the content below the
=======
and above>>>>>>> main
. - Next, remove the merge conflict markers by deleting the following lines:
<<<<<<< my-resume=======>>>>>>> main
- With the merge conflict markers removed, clickMark as resolved.
- Finally, clickCommit merge.
- Wait about 20 seconds then refresh this page (the one you're following instructions from).GitHub Actions will automatically update to the next step.
Get help:Post in our discussion board •Review the GitHub status page
© 2023 GitHub •Code of Conduct •MIT License
About
My clone repository
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.