Git and GitHub for Product Managers
Lesson 2
Why Rewriting History Upsets People
You'll hear the phrase 'force push' and see engineers react to it. You won't be doing it from a browser, but understanding why it matters helps you read the room.
WHAT A FORCE PUSH DOES
Normally, history only gets added to:
A --- B --- C --- D
Everyone's copy agrees. Safe.
A force push REPLACES history:
A --- B --- X --- Y
^
C and D no longer exist
Anyone who had C and D now has a version that
disagrees with the shared one. On a personal branch
that's fine and routine. On a shared branch it can
cost several people an afternoon.
This is why the reaction is strong. It isn't
superstition - it's recoverable but genuinely
disruptive.