Fill these in once
- Switch to main
git switch main - Get the latest main
git pullSkip this if the project isn't on GitHub yet.
- Merge your branch in
git merge fix-login-buttonIf Git says there's a conflict, see “Fix a merge conflict”.
- Share it on GitHub
git push
Check it worked
- See the history
git log --oneline --graph -10
Undo it
- Stop a merge that's gone wrong
git merge --abortWorks while the merge is still in progress. Everything goes back to how it was.
- Switch to main
git switch main - Get the latest main
git pullSkip this if the project isn't on GitHub yet.
- Merge your branch in
git merge fix-login-buttonIf Git says there's a conflict, see “Fix a merge conflict”.
- Share it on GitHub
git push
Check it worked
- See the history
git log --oneline --graph -10
Undo it
- Stop a merge that's gone wrong
git merge --abortWorks while the merge is still in progress. Everything goes back to how it was.
- Switch to main
git switch main - Get the latest main
git pullSkip this if the project isn't on GitHub yet.
- Merge your branch in
git merge fix-login-buttonIf Git says there's a conflict, see “Fix a merge conflict”.
- Share it on GitHub
git push
Check it worked
- See the history
git log --oneline --graph -10
Undo it
- Stop a merge that's gone wrong
git merge --abortWorks while the merge is still in progress. Everything goes back to how it was.

New to Merge? I explain it in plain English on Layman Terms.