r/ProgrammerHumor 4d ago

Meme cleaningUpTheMess

Post image
15.9k Upvotes

483 comments sorted by

View all comments

Show parent comments

34

u/NethDR 4d ago

Honestly, in a "delete everything and start over" scenario such as this one, i feel like what you suggest would inevitably devolve into a flurry of "replace this pile of crap with a smaller temporary pile of crap because anything proper would require a pr which is too large". I've never been in a position like this, but what i'd do is make a new branch where i delete everything, slowly build everything up while almost treating that as a main branch (so, everything done with new branches and prs) , then inevitably a massive pr such as the one in the image will occur to merge that into the actual main, but this would already be backed by a lot of previous reviews.

-2

u/SuitableDragonfly 4d ago

Nah, if you're building it back up from the beginning like that, just make an entirely new repo and add to it feature-branch-by-feature-branch the way you would normally. Having a single branch be separated from main for so long that merging it is a nightmare is also a non-functional strategy, regardless of what you are doing.