Bird
0
0

What happens if you run git rebase --continue immediately after marking a commit as edit without amending the commit?

medium📝 Command Output Q5 of 15
Git - Rebasing
What happens if you run git rebase --continue immediately after marking a commit as edit without amending the commit?
ARebase continues without changes to the commit message
BRebase aborts with an error
CGit opens the editor to amend the commit message automatically
DThe commit is deleted from history
Step-by-Step Solution
Solution:
  1. Step 1: Understand rebase behavior after edit

    If you do not amend the commit after marking it as edit, running git rebase --continue proceeds without changes.
  2. Step 2: Confirm no automatic editor launch

    Git does not open the editor automatically; it waits for you to amend manually.
  3. Final Answer:

    Rebase continues without changes to the commit message -> Option A
  4. Quick Check:

    Continue without amend = no message change [OK]
Quick Trick: Amend commit before continue to change message [OK]
Common Mistakes:
  • Expecting automatic editor on continue
  • Thinking rebase aborts without amend
  • Assuming commit is deleted

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Git Quizzes