DevOps Interview DropBeginner TierConcept+10 XP on read

You made a commit but forgot to include one file, and it isn't pushed yet. What do you do?

Core Summary

Stage the file and run `git commit --amend`. Amend doesn't edit the previous commit, it replaces it with a new one that has a new SHA, which is free while the commit is still local and a problem the moment someone else has it.

Hints

Hint 1: Amend does not edit a commit; it replaces it

Hint 2: A new SHA is harmless until someone else has the old one

Hint 3: --no-edit keeps the existing message

Reported in interviews at Most first-round screens