this post was submitted on 25 Apr 2024
680 points (97.4% liked)

Programmer Humor

18961 readers
1095 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 130 points 3 months ago (2 children)

You'd have to rewrite the history as to never having committed those files in the first place, yes.

And then politely ask all your coworkers to reset their working environments to the "new" head of the branch, same as the old head but not quite.

Chaos ensues. Sirens in the distance wailing.

[–] [email protected] 35 points 3 months ago (1 children)

Rewrite history? Difficult.

Start a new project and nuke the old one? Finger guns.

[–] [email protected] 24 points 3 months ago

History is written by the victors. The rest of us have to nuke the project and start over.

[–] [email protected] 21 points 3 months ago (1 children)

If this was committed to a branch would doing a squash merge into another branch and then nuking the old one not do the trick?

[–] [email protected] 15 points 3 months ago

Yes, that would do the trick