Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

PRs are merged squash everywhere I worked, so whats the point? Commit messages are hardly ever useful for me working on a task for a few days or even weeks.


Git keeps the commit messages when using `git merge --squash`.

By default it will produce a commit message starting with `Squashed commit of the following:`

The contents of this message are staged in `.git/SQUASH_MSG`.

When using GitHub the squash merge commit behavior is configurable and the teams I've been on have kept it configured to keep the commit messages of the commits being squashed. I assume GitLab has similar functionality.




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

Search: