by BobbyTables2 · 1y ago · 0 comments
My career never has worked that way. I’m always juggling a series of changes that will be reviewed and merged in close succession but separately.
I keep everything in a single branch and have scripts to cherry pick revisions for merge requests.
git rebase --update-refs
... or a GUI like Git Cola that does this for you by default.Perforce can have multiple active CLs but they can only hold changes at the file level instead of hunks. That ends up even more maddening somehow.
You mean commits? You know that you can easily edit, reorder, squash, split, rename and reorganize them into separate branches before you push them anywhere, right?
What would be the suggested solution? Make two empty commits and the cherry pick change chunks into each? Then to shelve/stash a change you need to make a new branch and cherry pick back? Sounds really cumbersome compared to the current staging workflow.