While you were working on your Round2 issue your instructor, playing the role of a maintainer, merged some changes into the upstream main. These changes were merged after you created the feature branch for your Round2 issue. This situation is illustrated in FigureΒ 5.2.1.
Diagram showing how merging the feature branch from one of the other forksβ feature branches into the upstream main branch results in a sequnce of commits that could conflict with the sequence of commits in your forkβs feature branch.
The changes that your instructor merged were specifically designed to create a conflict with the change that you made when you fixed your Round2 issue. Thus, the pull request you made in SectionΒ 4.8Β Letβs Do it Again now contains a conflicting change and therefore cannot be merged automatically.
The activities in the remainder of this section will reinforce your understanding of how the conflict arose, confirm that your main branch is out of synch with the upstream, and that your pull request cannot be merged automatically.
Which of the following commits (i.e. which color) in FigureΒ 5.2.1 did the instructor add to the upstream main branch after you created the feature branch for your Round2 issue?
If everything is as we saw above, then the pull request that you created for your Round2 issue will contain a merge conflict with the upstream main branch. Letβs confirm that it does before going on.
IMPORTANT: You should be seeing that your pull request cannot be merged automatically. Follow the instructions in SectionΒ 5.11Β Appendix A to fix this problem.
When your pull request cannot be merged automatically, return to this question and continue. See your instructor if you cannot resolve this problem.
Image of a dialog with a exclamation point inside a triangle and the message "This branch has conflicts that must be resolved. Use the web editor or the command line to resolve conflicts."
If you see a message about GitHub checking if the merge can be performed automatically, wait a few moments for one of the other messages to appear.
Hint.
If you donβt see a message make sure you completed your pull request. If you have questions, please ask your instructor to verify your merge request has been created properly.
We now know that your Round2 pull request contains a merge conflict and cannot be merged automatically. Place the following actions into an order which could have created this merge conflict.