Coder Social home page Coder Social logo

merge-conflict's People

Contributors

andregoiano avatar beardofedu avatar brianamarie avatar dependabot[bot] avatar github-learning-lab[bot] avatar githubteacher avatar hectorsector avatar hollenberry avatar snyk-bot avatar

Watchers

 avatar

merge-conflict's Issues

Next steps

Nice work

celebrate

Congratulations @andregoiano, you've completed this course!

What went well

Before I say good-bye, here's a recap of all the tasks you've accomplished in your repository:

  • You learned why merge conflicts happen
  • You practiced a normal merge
  • You resolved a simple merge conflict
  • You created a merge conflict, and resolved it!
  • You resolved a multi-file merge conflict

What's next?

Here are some instructions you can use to keep working on your resumΓ©:

Finishing the resume

Finishing the resume

To modify the other sections of the resume, simply create a new branch and modify the files found in the _data folder.

For example, to modify the "Projects" section, edit the _data/projects.yml file. After making your changes, create a new pull request and merge your changes.


Changing the picture

Changing the picture

If you would like to change the image used on your resume, you need to make a few changes to the files.

  1. Create a new branch, maybe name it something like new-avatar.
  2. Navigate to the images directory and click the Upload files button.
  3. Drag and drop your image.
  4. Commit your change by clicking Commit changes.
  5. On the new-avatar branch, open the _layouts/resume.html file and edit line 16. Replace images/bob-avatar.jpg with images/YOURFILENAME.
  6. Create a pull request.
  7. Merge the pull request, and delete the branch.

Enabling GitHub Pages

Enabling GitHub Pages

When you are happy with your resume, you will need to publish it with GitHub Pages. This resume is ready for GitHub Pages, you just need to turn it on. Follow these steps to enable GitHub Pages when you are ready to officially publish your resume:

  1. Click on the Settings tab.
  2. Scroll to the "GitHub Pages" section.
  3. In the "Source" drop-down, select master branch.
  4. Click Save.
  5. 🚧 Warning! 🚧 Make sure you don't see any errors after you select save. If you do, your page won't build correctly and this step will be incomplete.

Your GitHub Pages resumΓ© site will be live very shortly. Click here to check it out.


Keep Learning

Want to work on resolving merge conflicts using the command line? Check out this documentation.

Want to keep learning? Feel free to check out our other courses?


I won't respond to this issue, go ahead and close it when finished!

Welcome

Welcome to Managing Merge Conflicts πŸŽ‰

Hello, and welcome! If you're here to learn about and practice resolving merge conflicts, you're in the right place.

In this course, you'll learn why merge conflits happen by solving four merge conflicts. All of the merge conflicts in this course will be simple enough to solve from within the GitHub.com user interface, but if you'd prefer, you can solve them using the command line or other local tools.

As an added bonus, the project we are using for this course is a resume hosted on GitHub Pages! So, if you want to keep working after you complete this course, please feel free!

Note: You may notice that some branches and pull requests already exist. We'll be using them in later activities in this course.

How merge conflicts happen

Version control lets you make incremental changes to your code or file base while keeping the history. Git operates as a linked list, so a small history of three commits πŸ“– might look like this:

three commits in a linked list format

In the GitHub Flow, you...

  • first create a new branch πŸ“– off of the base branch, which is really just a reference point to a commit on the base branch.

add a branch

  • Next, you add one or more commits that, for now, exist only on your branch. The other commits stay fixed to their reference point in history.

branch with new commit

  • Finally, you open a pull request πŸ“– to propose that your new commits be included in the base branch, optionally add more commits, and then merge πŸ“– and delete your branch!

A Merge conflict occurs when someone else made a change on the base branch in the same file and location where you proposed changes. This usually happens when someone else merges in their branch before you merge yours.

This can be intimidating, but have no fear, Git knows how to handle this! It only needs a human to decide how to resolve the conflict.

Step 1: Create a Pull Request

Before we get too far ahead of ourselves, let's first practice making a simple change on a branch. Visualize your actions using the flow you reviewed above.

⌨️ Activity: Create a normal pull request

  1. On the Code tab, click the _data/skills.yml file
  2. In the upper right corner of the file view, click the ✏️ icon to open the file editor
  3. In the file, add a skill or two that you're proficient in
  4. Scroll to the bottom of the page and select the option to "Create a new branch for this commit and start a pull request"
  5. Replace the default patch branch name with change-skills
  6. Select Propose file change
  7. In the "Leave a comment" field of the pull request, describe the change you made
  8. Click Create pull request
  9. 🚧 Don't merge yet! 🚧 Refresh the pull request to receive the next comment/instructions.

For a printable version of the steps in this course, check out the Quick Reference Guide.


Look for my next response in your pull request

Sometimes I respond too fast for the page to update! If you perform an expected action and don't see a response from me, wait a few seconds and refresh the page for your next steps.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.