zlacker

[parent] [thread] 4 comments
1. bvdw+(OP)[view] [source] 2025-12-05 13:58:32
I've settled on a workflow that reverses the situation. I simply commit all my work to the main branch and cherry pick commits into temporary feature branches only when submitting PRs.

This way I only need to worry about maintaining a single consistent lineage of commits. I've been using this workflow for about a year now and find it to be much easier than juggling and rebasing feature branches.

In case anyone's interested, I made a tool that automates this workflow. The worfklow and tool are described here: https://github.com/bjvanderweij/dflock/

replies(2): >>motobo+U >>JimDab+P1
2. motobo+U[view] [source] 2025-12-05 14:02:53
>>bvdw+(OP)
How many people on the team?
replies(1): >>bvdw+bp
3. JimDab+P1[view] [source] 2025-12-05 14:07:04
>>bvdw+(OP)
You might like Jujutsu – you commit without being on any branch and then later you can decide where and how you put things onto branches.
replies(1): >>bvdw+O2
◧◩
4. bvdw+O2[view] [source] [discussion] 2025-12-05 14:12:10
>>JimDab+P1
Interesting, I'll be sure to check it out. It sounds pretty similar to the tool I built which lets you edit a "plan" in a text editor to assign commits to feature branches - the plan is saved so it can be amended continuously.
◧◩
5. bvdw+bp[view] [source] [discussion] 2025-12-05 15:51:55
>>motobo+U
I work in a small team, about five people.
[go to top]