Re:Extremely Linear Git History
by juped on Wednesday November 23, 2022 @02:52AM
(#33716384)
But why do you "squash" it! Why do people do this?
[ Parent
| on HN ]
Ever seen a PR that implements something in a GitHub Actions workflow? The history usually looks like: clear cache, fix path, fix variable expansion, fix command, fix command again, fix syntax, […].
The best way IMO is to interactive-rebase the branch locally (or force-push a rebased version later), but sometimes 50 commits merge into a 30-ligne single-file change and nothing beats squash.