logoalt Hacker News

bvdwtoday at 1:58 PM2 repliesview on HN

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

JimDabelltoday at 2:07 PM

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.

show 1 reply
motoboitoday at 2:02 PM

How many people on the team?

show 1 reply