{"action":"created","issue":{"url":"https://api.github.com/repos/wtrumler/merge-conflicts/issues/1","repository_url":"https://api.github.com/repos/wtrumler/merge-conflicts","labels_url":"https://api.github.com/repos/wtrumler/merge-conflicts/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/wtrumler/merge-conflicts/issues/1/comments","events_url":"https://api.github.com/repos/wtrumler/merge-conflicts/issues/1/events","html_url":"https://github.com/wtrumler/merge-conflicts/pull/1","id":449332979,"node_id":"MDExOlB1bGxSZXF1ZXN0MjgyODgxNTc1","number":1,"title":"Welcome! Let's resolve a conflict","user":{"login":"github-learning-lab[bot]","id":37936606,"node_id":"MDM6Qm90Mzc5MzY2MDY=","avatar_url":"https://avatars0.githubusercontent.com/in/10572?v=4","gravatar_id":"","url":"https://api.github.com/users/github-learning-lab%5Bbot%5D","html_url":"https://github.com/apps/github-learning-lab","followers_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/followers","following_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/repos","events_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/received_events","type":"Bot","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-05-28T15:22:35Z","updated_at":"2019-05-28T15:26:34Z","closed_at":"2019-05-28T15:26:29Z","author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/wtrumler/merge-conflicts/pulls/1","html_url":"https://github.com/wtrumler/merge-conflicts/pull/1","diff_url":"https://github.com/wtrumler/merge-conflicts/pull/1.diff","patch_url":"https://github.com/wtrumler/merge-conflicts/pull/1.patch"},"body":"# Welcome to Managing Merge Conflicts :tada:\n\nHello, and welcome! If you're here to learn about and practice resolving merge conflicts, you're in the right place.\n\nIn this course, you'll learn why merge conflicts happen and solve a few of them. The merge conflicts in this course are simple enough to solve from GitHub.com. But, if you'd prefer, you can solve them using the command line or other local tools.\n\nAs an added bonus, the project we are using for this course is a resume hosted on [GitHub Pages](https://pages.github.com/)! So, if you want to keep working after you complete this course, please feel free!\n\nBefore starting this course, we recommend completing the [Introduction to GitHub Learning Lab](https://lab.github.com/githubtraining/introduction-to-github) first. \n\n> Note: You may notice that some branches and pull requests already exist. We'll be using them in later activities in this course.\n\n### How merge conflicts happen\n\nA **Merge conflict** occurs when changes are made to the same part of the same file on two different branches. You usually find out about conflicts in a pull request. \n\nThis 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.\n\n## Step 1: Resolve a simple conflict\n\nYou may merge a lot of pull requests before you encounter your first merge conflict. That’s because Git is smart when it comes to merging. Unless you're paying close attention to other branches, you won't know about conflicts until you create a pull request.\n\nThis branch is a great example. In this scenario, two of our friends have been working in this repository. They both created branches, made changes to the `_config.yml` file, and opened pull requests. One pull request was merged to `master` without problems, but now the other pull request has a conflict.\n\nThe history of `master` and this branch look something like this:\n\n![deviated branches](https://user-images.githubusercontent.com/13326548/36703493-b8f4d5ee-1b10-11e8-9f95-4ec9993fe704.png)\n\nBecause this pull request changes the same lines in the `_config.yml` file, there is a merge conflict. \n\nLet's help our friends resolve this conflict.\n\n### :keyboard: Activity: Resolving your first merge conflict\n\n\n\n1. At the bottom of the page in the \"This branch has conflicts that must be resolved\" section of the Pull Request, click the **Resolve conflicts** button.\n2. Look for the highlighted sections that begins with  `<<<<<<<  update-config` and ends with `>>>>>>> master`. These markers are added by Git to show you the content that is in conflict.\n3. Remove the changes made on the master branch by deleting all of the content below the `=======` and above `>>>>>>> master`.\n4. Next, remove the merge conflict markers by deleting the following lines:\n\n       <<<<<<< update-config\n       =======\n        >>>>>>> master\n\n5. With the merge conflict markers removed, click **Mark as resolved**.\n6. Finally, click **Commit merge**.\n\n\n\n> 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.\n\n<hr>\n<h3 align=\"center\">Watch below for my response.</h3>\n\n"},"comment":{"url":"https://api.github.com/repos/wtrumler/merge-conflicts/issues/comments/496565824","html_url":"https://github.com/wtrumler/merge-conflicts/pull/1#issuecomment-496565824","issue_url":"https://api.github.com/repos/wtrumler/merge-conflicts/issues/1","id":496565824,"node_id":"MDEyOklzc3VlQ29tbWVudDQ5NjU2NTgyNA==","user":{"login":"github-learning-lab[bot]","id":37936606,"node_id":"MDM6Qm90Mzc5MzY2MDY=","avatar_url":"https://avatars0.githubusercontent.com/in/10572?v=4","gravatar_id":"","url":"https://api.github.com/users/github-learning-lab%5Bbot%5D","html_url":"https://github.com/apps/github-learning-lab","followers_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/followers","following_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/repos","events_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2019-05-28T15:26:34Z","updated_at":"2019-05-28T15:26:34Z","author_association":"NONE","body":"Good job! You've solved your first merge conflict.\n\n<hr>\n<h3 align=\"center\">Go to <a href=\"https://github.com/wtrumler/merge-conflicts/pull/3\">the next pull request</a> now.</h3>\n"}}
{"actor":{"display_login":"github-learning-lab"}}