News for hackers. Stuff that matters.
Re:My unorthodox, branchless Git workflow by raziel2p on Tuesday April 07, 2020 @10:28AM (#22803491)
> I’ll just apply them to master, rebase them behind my WIP work, and then use git push origin HEAD~5:refs/heads/master to send them upstream, or something to that effect.

if you're going through the trouble of carefully rebasing to change the order of commits, and remembering exactly how many commits behind HEAD you should push, and remembering what state the remote is in (what is master is actually pointing at HEAD~4?)... why not just go through the comparatively minor trouble of using branches?

also it's not like working on branches excludes the possibility of sometimes committing directly to master. that's what I do for most of my personal projects: small cleanup and fixes happen on master, larger things happen in a branch on a PR until I'm happy with it. ~30% of the time I'm actually not happy with how it turns out, and then I'd rather just close the PR and delete the branch than carefully revert work in progress.

Re:My unorthodox, branchless Git workflow by jdhzzz on Tuesday April 07, 2020 @10:47AM (#22803675)
With you 100%. And yes, I will sue.
Re:My unorthodox, branchless Git workflow by newswasboring on Tuesday April 07, 2020 @10:55AM (#22803762)
What will you sue?
Re:My unorthodox, branchless Git workflow by grayed-down on Tuesday April 07, 2020 @11:04AM (#22803846)
For peace?