Embercode
✕
Git and GitHubQuick quiz

Rebase

6 questions. Covers Rebasing your branch onto main.

Questions 1 to 5 of 6

  1. 1. True or false: after git rebase main, your commits keep the same IDs, because only the branch name moves.
  2. 2. Spot the bug in this sequence. A teammate pushed add-menu yesterday and is still working on it. ``bash git switch add-menu git rebase -i HEAD~1 git push --force origin add-menu `` What is wrong?
  3. 3. True or false: if a rebase goes wrong, git rebase --abort keeps the commits that were already replayed and finishes the rest.
  4. 4. You want to combine a small Fix typo commit into the commit above it, and keep only the message of the commit above. Which word do you put in place of pick on the Fix typo line of git rebase -i?
  5. 5. A rebase stops with a conflict. In the marked section, the part between <<<<<<< HEAD and ======= is which version?

5 question(s) left on this page.