Hacker News new | past | comments | ask | show | jobs | submit login

I religiously squash my commits for each merged pull request.

I seems like madness any other way to me... why have a bigger granularity than a single merge commit?




Interesting, it seems like madness to me to have it the other way around. Why bother with a merge commit if all the changes are squashed into one anyway? Why not just fast forward merge as if it was a commit directly to the main development branch?


Granularity helps with bisecting issues.


at least in github after you find the squash commit equivalent to the PR you can restore the branch and bisect the rest in there. This is much faster!




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: