1.
Ensure that you are in your local repository in a Terminal. Use the following commands to restore your main branch to the state before the conflicts were introduced:
git switch main
git reset --hard~1
main
branches after the instructor merged the conflicting changes into the upstream main
branch. This could have happened if you did not complete the previous assignment on time. The instructions in this section will help you to resolve that issue but will require a little additional work on your part.git switch main
git reset --hard~1