3 ms·
If people generate N-1 commits with a final one to clean things up, maybe people should learn about git stash and making some WIP branches, then squashing commi
by jarfil 11y ago
If people generate N-1 commits with a final one to clean things up, maybe people should learn about git stash and making some WIP branches, then squashing commits themselves or better yet, keeping their own history clean, instead of submitting PRs full of crap.
I know, it might be too much to ask of people... oh well.
- hinkley 11y agoThe Mikado method is sadly underemphasized. Just because you smash away at code for hours doesn't mean that's how your commit history should look. You can revise history in ways that are beneficial instead of destructive.
- cortesoft 11y agoWhat is the cost of just doing it at the last merge step? Makes it easier, doesn't it?
- chris_wot 11y agoYeah, but dreadful if you try to bisect a problem.
- rjayatilleka 11y agoYeah, and that's why you squash all the intermediate commits first. If all your commits on master are useful and meaningful individually, bisect works great.