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
You should see output similar to:
HEAD is now at …