News for hackers. Stuff that matters.
Re:Why do most top performers have the highest count of comm... by FeepingCreature on Monday December 07, 2020 @02:21AM (#25330054)
To me it's rebase > squash > merge. Nobody wants to read a commit history and see a page-long list of "fix audit", "fix typo", "retry ci", "test: change foo", "Revert: test: change foo", "Revert: Revert: retry ci"... That's why you rebase into a sequence of logical, if fictional, worksteps. But if you can't do that, squash is second-best.
Re:Why do most top performers have the highest count of comm... by OJFord on Monday December 07, 2020 @10:26AM (#25332997)
My preferred is rebase (exactly as you describe) but keeping the original fork point, (unless it becomes necessary to depend on some other later work from another branch, the original base or not) and then merge.

So you end up with a cleaned-up branch history via rebase, and a master branch that's similarly clean, with a higher level view of 'logical commits' that 'merge X feature', 'merge Y bug fix'.

Re:Why do most top performers have the highest count of comm... by pastage on Monday December 07, 2020 @12:08PM (#25334114)
With rebase I keep my commits small, easier to merge then. I've seen strange things slip through large commits. E.g. Someone (me) missed the deleted files, rebased and hence recreated them.

Then I tried to squash them before merging. But if you squash your commits you get a large commit and you get the same problem. Oh well...

I guess it's easier when you have small features.