DevOps Interview DropIntermediate TierScenario+25 XP on read

A developer wants to git reset --hard and force-push a shared branch to undo a bad commit. Do you allow it?

Core Summary

On a shared branch, no. Use git revert, which undoes the change with a new commit and leaves history intact. Reset plus force-push rewrites history that other people, CI and deployment records already depend on.

Hints

Hint 1: Revert moves forward; reset rewrites the past

Hint 2: Ask who else already has these commits

Hint 3: An audit trail is a feature, not clutter

Reported in interviews at Google, Atlassian