mirror of
https://github.com/opus-tango/skills-resolve-merge-conflicts.git
synced 2026-03-20 12:05:20 +00:00
75 lines
3.3 KiB
Markdown
75 lines
3.3 KiB
Markdown
<header>
|
||
|
||
<!--
|
||
<<< Author notes: Course header >>>
|
||
Include a 1280×640 image, course title in sentence case, and a concise description in emphasis.
|
||
In your repository settings: enable template repository, add your 1280×640 social image, auto delete head branches.
|
||
Add your open source license, GitHub uses MIT license.
|
||
-->
|
||
|
||
# Resolve merge conflicts
|
||
|
||
_Learn why conflicts happen and how to resolve them._
|
||
|
||
</header>
|
||
|
||
<!--
|
||
<<< Author notes: Course start >>>
|
||
Include start button, a note about Actions minutes,
|
||
and tell the learner why they should take the course.
|
||
-->
|
||
|
||
## Welcome
|
||
|
||
Merge conflicts happen when two people make changes to the same file on GitHub—a common occurrence when you’re working with others. While resolving differences might involve some discussion, merge conflicts don’t have to be scary. This course guides you through the steps to finding the best merge conflict solution, so your team can keep building.
|
||
|
||
- **Who is this for**: New developers, new GitHub users, users new to Git, students, managers, teams.
|
||
- **What you'll learn**: What merge conflicts are, how you resolve merge conflicts, how to reduce merge conflicts.
|
||
- **What you'll build**: We'll work with a short Markdown resume file in this course.
|
||
- **Prerequisites**: We recommend taking [Introduction to GitHub](https://github.com/skills/introduction-to-github) prior to this course.
|
||
- **How long**: This course takes less than 30 minutes to complete.
|
||
|
||
In this course, you will:
|
||
|
||
1. Create a pull request
|
||
2. Resolve a merge conflict
|
||
3. Create a merge conflict
|
||
4. Merge your pull request
|
||
|
||
### How to start this course
|
||
|
||
<!-- For start course, run in JavaScript:
|
||
'https://github.com/new?' + new URLSearchParams({
|
||
template_owner: 'skills',
|
||
template_name: 'resolve-merge-conflicts',
|
||
owner: '@me',
|
||
name: 'skills-resolve-merge-conflicts',
|
||
description: 'My clone repository',
|
||
visibility: 'public',
|
||
}).toString()
|
||
-->
|
||
|
||
[](https://github.com/new?template_owner=skills&template_name=resolve-merge-conflicts&owner=%40me&name=skills-resolve-merge-conflicts&description=My+clone+repository&visibility=public)
|
||
|
||
1. Right-click **Start course** and open the link in a new tab.
|
||
2. In the new tab, most of the prompts will automatically fill in for you.
|
||
- For owner, choose your personal account or an organization to host the repository.
|
||
- We recommend creating a public repository, as private repositories will [use Actions minutes](https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions).
|
||
- Scroll down and click the **Create repository** button at the bottom of the form.
|
||
3. After your new repository is created, wait about 20 seconds, then refresh the page. Follow the step-by-step instructions in the new repository's README.
|
||
|
||
<footer>
|
||
|
||
<!--
|
||
<<< Author notes: Footer >>>
|
||
Add a link to get support, GitHub status page, code of conduct, license link.
|
||
-->
|
||
|
||
---
|
||
|
||
Get help: [Post in our discussion board](https://github.com/orgs/skills/discussions/categories/resolve-merge-conflicts) • [Review the GitHub status page](https://www.githubstatus.com/)
|
||
|
||
© 2023 GitHub • [Code of Conduct](https://www.contributor-covenant.org/version/2/1/code_of_conduct/code_of_conduct.md) • [MIT License](https://gh.io/mit)
|
||
|
||
</footer>
|