Let's create merge conflicts!
- Click the
Fork
button in the top right corner to generate your own copy of this repository. - In your
locations.md
file, list where you are from (this can be where you live, where your school is located, your hometown, or where you'd rather be right now 😄). - Commit your changes.
- Go back to the front page of your repository. You will see that you have a branch that has 1 commit ahead of the original files. Click on
Pull Requests
to start a Pull Request. You can stop here for now.
- If you have a merge conflict, you'll need to resolve it before you can submit your pull request. The merge conflict will look like this:
<<<<<<< new branch
your new changes
=======
changes from the owner of the original file
>>>>>>> original-branch
Delete the lines with <<<, >>>, and ===. Edit the changes so that the final result includes your city but doesn't remove anyone else's city.
2. Once you have completed your pull request, submit it. Then wait for the facilitator to approve your changes and "pull" them into the original repository.
3. You may have a new merge conflict to resolve if other participants have added changes before you. Not to worry, you'll just get more practice 😁.
If there is time, we'll practice code reviews.
- The facilitator will add you as a collaborator on the original repository. You'll be able to merge your own pull requests, but only after someone else has reviewed your code!
- Once the facilitator has added you as a collaborator, you'll receive an email to accept the invitation to the repository. You can also accept the invitation with this link:
https://github.com/arelia-classroom-demos/[insert name of repository here]/invitations
- Edit the
what-do-you-teach.md
file and commit your changes in a new branch. - Open a pull request to add your changes to the main branch (this may open automatically when you choose to commit to a new branch)
- Add one of your classmates to review your changes in your pull request. Resolve any merge conflicts if they arise in your pull request.