gitpractice.dev

brewly — Ch.3 · Back out of a merge

Exercise 8 of 9

Before you start

You can always step back

While a merge has unsolved conflicts, you can cancel it. Your branch and files go back to how they were before you merged.

git merge <branch>
start the merge
git status
shows that you are in the middle of merging
git merge --abort
cancel the merge
You can reopen this any time with “Lesson”.

Continue on a desktop

Typing git on a small screen is no fun. Open this page on a laptop or desktop to practise.

Back to the path