Module 3 Exercise 2: Merge conflicts

Exercise: Pull requests and merge conflicts

  1. Accept the group assignment, join a team with other members in it, and gain access to a shared repository.
  2. From the shared repository on GitHub.com, clone the repository down to your local machine.
  3. Edit the “Group Assignment” markdown file in your text editor.
  4. Save it out, stage the changes and push to the Module 3 repository.
  5. Resolve any merge conflicts that arise.

Post a screenshot of your pull request to a group project here.

4 Likes

Does it matter which team we join? Thanks!

@minneapolis-edu feel free to join a team, or start your own.

I know you didn’t ask for a screenshot, but I’ve gotten used to it now :stuck_out_tongue:
50

2 Likes

Screenshot%20from%202018-02-28%2000-39-24

2 Likes

10

2 Likes

@barnsza :sparkles:

m3%20e1

1 Like

module3_2

no merging… no conflicts…

Oh well. Did not join any team, so no pull request, no conflicts, no merge. Screenshot-2018-3-12%20Campus-Advisors%20module-3-group-work-ud

1 Like

Did you want to join an existing team? I see Mod3team has a few members:

Here is the screenshot! No merge conflict this time :thinking:

screenshot_5

2 Likes

Here my screenshot, no merge conflict.
imagen

1 Like

In the repository with the videos, there should be a mention that the group assignment is in this thread :wink:
image

2 Likes

Exercise%203%20Module%203

1 Like

Adding my screenshot for the team activity!

team_pull_request

2 Likes

Module 3 Exercise 2

vcubells%20module%203%20exercise%202

1 Like

I’m not quite sure what you’re looking for with this exercise. Like a lot of people, I created my own team before realising that really I needed to be in a team with other people in it, so to create the possibility of merge conflicts. So I used git commit --amend to create my own merge conflict. As follows:

vi GroupAssignment.md
git add GroupAssigment.md
git commit
git push origin master
vi GroupAssignment.md
git add GroupAssigment.md
git commit --amend
git push origin master

git push origin master fails, because local is out of sync with origin. So…

git pull origin master

This throws a merge conflict, so have to edit GroupAssignment.md to fix the conflict.

vi GroupAssignment.md

Then commit and push

git add GroupAssigment.md
git commit
git push origin master

Tada.

And since everyone’s including screenshots…
2018-04-27%20(3)

2018-04-27%20(1)

2018-04-27%20(4)

1 Like

1017

@mozzadrella I forced a little merge conflict by updating the groupassignment.md in a seperate branch locally and updating the same in the master branch before making the pull request.
That seemed to do the trick :slight_smile:

image

1 Like
© 2017 GitHub, Inc.
with by
GitHub Education