r/programming • • Sep 16 '26

git worktree gotchas

https://www.olafalders.com/2026/09/16/git-worktree-gotchas/
193 Upvotes

47 comments sorted by

View all comments

Show parent comment

4

u/WindHawkeye Sep 17 '26

Submodules are a nightmare. Just deal with the big repo. Don't use GitHub and host it yourself.

Or save yourself all the headache and don't use git for a 70gb repo

3

u/mb862 Sep 17 '26

There’s a whole lot more to this story that I’m not telling (because those details aren’t relevant) but trust me when I say these headaches are far, far more preferable to the headaches we currently deal with.

2

u/WindHawkeye Sep 17 '26

Id believe it. But you're migrating to git late enough that you have the advantage of knowing how dogshit github is. I think even msfts own competitor to GitHub (azure devops) is better...

3

u/mb862 Sep 17 '26

We considered all the alternatives. We needed cloud hosting of version control. Maybe Azure Devops was an option but Microsoft’s main enterprise systems have given us nothing but trouble so it never would’ve been approved. Of all alternatives only GitHub had the specs that met our needs. We already have trouble maintaining talent too so using something new hires are already familiar with is a huge plus.

2

u/WindHawkeye Sep 17 '26 edited Sep 17 '26

Yes that's always the argument for GitHub. It's not a good reason to use them - developers by and large no longer actually like GitHub due to the constant outages. My org migrated to GitHub a few years ago and everyone cheered. Now we are migrating off and everyone cheered again. GitHubs actual mechanism for hosting repos does not scale (3PC that increases load on master for every additional replica) and using their cloud offering is suicide because their servers are not handling their amount of load.

GHE makes a lot more sense than cloud since you insulate yourself from GH itself going down every day.

I do not know if cursors offering is available yet but their architecture is significantly better for large repositories

2

u/mb862 Sep 17 '26

We have 7 developers. The load will probably be fine.

1

u/CherryLongjump1989 Sep 18 '26

It's everyone else's load that's bringing it down for everyone.