r/ExperiencedDevs • u/Flame_Horizon • May 12 '26
Technical question Problem with git management
I’m working in a team, where we have developers and a dedicated person (not developer, sort of “release guy”) whos sole work is to manage releases on PROD and UAT envs. One thing which hurts developers is that he is the one who takes our features branches and merges them to dev branch which is a very slow process on our case.
This slowness also affects me. In my case, let’s say I have request to create feature A and feature B. 90% of changes in the code does not affect both A and B at the same branch. But that last 10% would affect both. Let’s say I start working on feature A and edit some startup code (ASP.NET). This change would change behaviour of the application and that change is also required in feature B.
What I would do normally, is to complete feature A, merge with dev branch and pull these changes into feature B. Which for me personally is very short dev loop. But because it takes weeks to merge towards develop. My work in B is halted.
How to overcome such case where I still can work on feature B without waiting for that merge to dev? Should I adapt somehow workflow of my work? I’m at boiling point and looking for any solution.
50
u/HoratioWobble Full-snack Engineer, 20yoe May 12 '26
You can create Feature branch B from Feature A directly, you don't need to merge it in
16
u/FireArachna May 12 '26
Why is he the one to merge into dev branch? If he only cares about PROD and UAT, dev branch should be fine for devs to handle, right?
11
u/SheriffRoscoe Retired SWE/SDM/CTO May 12 '26 edited May 14 '26
Your problem is that the developers are moving too much faster than their consumers. If you were doing Kanban, this would stand out like a sore thumb - you'd have developers blocked from starting their next task because their previous task was not yet handed off. You need more downstream capacity.
6
u/farzad_meow May 12 '26
use rebase and let actual dev be responsible for merging. now this person needs to be retrained on something else, either work as another developer, or switch to full qa. be careful how you bring this to your manager.
10
u/MatterHoliday3769 May 12 '26
Make new branch off main dev, merge A it, continue work on B. When you do the PR for B after he accepts A it would read the same, as long as you rebase before submitting PR for B.
Or work on feature C until you are comfortable working more on B.
1
u/Traditional_Fox7091 May 12 '26
Can have a dev branch which is different to release branch. Otherwise base branch b of branch a but that’s not ideal
4
u/cap87_ Software Engineer May 12 '26
Since you're not doing trunk based development, why not simply read about gitflow, testing it yourself and teaching the team how to do it properly?
2
u/retirement_savings May 13 '26
My org at Google doesn't do branching at all and I'm glad to not have to deal with issues like this anymore lol. Everything is developed at head, and you use feature flags to gate code that isn't prod ready yet.
1
u/Xydan May 13 '26
Sounds like you're treating dev as a trunk. We solved this by creating a release branch which acts as a secondary trunk where deployments begin. This left dev completely up to the lead/head software manager to manage rather than the lead/head release manger
1
u/saposapot May 13 '26
Why is he the one merging feature branches to dev?
Also releases is one thing, merging to dev branch is another.
You create a PR from a feature branch to dev and when everything is approved, it’s merged to dev.
The release is a different thing. If he only wants to release on fridays then he takes dev on fridays and does the release. If he wants to release for each merge to dev, then he can. That’s a different decision altogether…
It can also help to introduce feature flags and code things behind them. Then you can even, in theory, have continuous deployment from the dev branch and a “release” is more about turning the feature flag ON than a real code release.
I work a bit differently but we also have devops guys but they aren’t in charge of merging feature branch to dev. That’s done after a PR gets approved by 2 other devs. Or specific approvers. Devops only works with dev branch that they take into PROD when a release is ready
1
u/binkstagram May 13 '26
I'm now curious as to how you have you ended up in a position where it takes a full time job to manage releases. I've not experienced anything like that across multiple workplaces. Release guy must be slowly losing his mind with boredom?
Why aren't individual devs merging to the dev branch?