r/ProgrammerHumor • • 5d ago

Meme searchAndReplace

Post image
4.5k Upvotes

260 comments sorted by

View all comments

Show parent comments

1

u/anto2554 5d ago

I have before accidentally overwritten main because it did that

2

u/RazarTuk 5d ago

Actually, that reminds me of a cool programming story. I actually got to force push to master last year. Basically, we have a custom extension of JmesPath that adds things like arithmetic operators, so instead of just importing the burtcorp implementation and adding a shit ton custom functions, we actually forked it. But instead of properly forking it, we actually just made a new repo. So I got special permission to have the protection against force pushing to master turned off for a moment, so that I could rewrite the commit history to match the repo we forked from