SpinTheMic
Pro

Interview practice question

Fixing a typo in the last commit message

Cloud & DevOps · Git and Version Control · Beginner

You just committed with a typo in the message and haven't pushed yet. How do you fix it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • git commit --amend.
  • Edit message.
  • Only before pushing.
  • If pushed to own branch: force-with-lease.
  • Shared branch: leave it.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics