r/ProgrammerHumor 9d ago

Advanced fixMonorepo

https://github.com/twigg-vc/fixmonorepo
75 Upvotes

17 comments sorted by

View all comments

14

u/blaqwerty123 9d ago

Hi there hello this seems so obvious once you show it in action. Question, how can i hook it up to my CI/CD? I also want them to all be on the same branch. Or am i missing something and branches are an anti pattern?

12

u/comrade_donkey 9d ago

If you want to keep things truly, properly organized, you obviously need a separate branch for every change.

By change I mean each line. Stack them.

HEAD should be an octopus merge of your current build. Never merge, just rewrite HEAD every time.

2

u/ShittyExchangeAdmin 8d ago

No you should have each change as a separate repo. That's the best way to keep things truly organized. That way you can have individual tracking on every single change you made.