Video: Continue, skip or abort an active operation
The video plays in YouTube’s player, in privacy-enhanced mode.
- 7 min video
- English narration · English and Arabic captions
- Watch on YouTube
When a merge or a rebase stops, you have three ways out: continue, skip or abort. Learn which one fits, what each one throws away, and how to check the repository afterwards.
Read the full lesson
The article has every step and command from the video, the practice exercise and the questions.
Video transcript
The narration of the video, cue by cue.
- A merge or a rebase stops. You have three ways out.
- Continue finishes it. Skip leaves one commit out. Abort goes back.
- First, always find out which operation is active.
- The banner names it. In a terminal, git status does.
- Build Sara's and Omar's branches, and three identical copies.
- Same start, three different endings.
- Copy one: we continue. Start the merge, and it stops.
- Resolve, open the file, and write the combined heading.
- Save and Mark Resolved, so Git sees the file as done.
- Continue is available now. Choose it once.
- Done. The new commit has two parents, and the banner is gone.
- Copy two: we abort. Start the same merge.
- Leave the conflict alone, and choose Abort.
- The dialog explains what comes back, and what is kept first.
- The repository is back where it was before.
- The branch tip is the same ID, and the page is Sara's again.
- Copy three: we skip. This one is a rebase.
- Rebase Sara's branch onto Omar's. It stops with a conflict.
- Now the banner has a Skip button. A merge never had one.
- Skip leaves Sara's commit out of the result. Say that out loud.
- Choose Skip once.
- The page shows Omar's heading. Sara's branch now sits on his commit.
- Skip is not a resolution. It deleted Sara's change from this result.
- In the terminal, git status shows what is active, and the commands.
- The merge: add the resolved file, then git merge continue.
- The abort: the branch tip is the same before and after.
- The skip: git rebase skip, and the branch sits on Omar's commit.
- In every copy, the status is empty, and nothing is left unmerged.
- Change the input: resolve the file, then choose Abort instead.
- Your resolution is dropped, after a recovery snapshot is saved.
- Never use reset hard to escape. Abort is the safe way out.
- If you skipped by mistake, the commit is still in the reflog.
- Practice: name the operation, the choice, and the proof, for each copy.
- Next, copy a single commit onto another branch with cherry-pick.