1.
Hint.
Read the introduction to this section.
main
branches now contain the changes that were made to the upstream main branch. The next step is to merge the changes from the main
branch into your feature branch.main
branch being merged into a feature branch.main
branch into a feature branch.main
branch into the hadPig
branch?main
was merged with the brown commit in the hadPig
branch.main
branch.hadPig
branch.main
branch.main
. Likely from merging a pull request.git merge
Command.
git merge <branch name>
will attempt to merge the changes in the active branch with the changes in <branch name>
.main
branch is the active branch. Select and arrange statements from those listed below such that the main
branch will be merged into the hadPig
branch as in Figure 5.4.1. Note: Not all statements will be used.main
branch into your feature branch, your feature branch must be the active branch. Let’s ensure that your feature branch is the active branch.git switch <branch>
command to make your feature branch the active branch.git status
command to check that your feature branch is now the active branch.main
branch into your feature branch.merge
command?main
branch and your feature branch, this is what we expect. Continue to the next exercise.Ctrl-x
to exit the nano editor.git revert --hard HEAD~1
merge
command again.merge
command from Exercise 5.4.2.3 is correct and that you typed it into the terminal correctly.merge
command?README.md
file is opened in the editor.