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

This is great! The takeaway for me is that with squash merge you get one commit with all the changes which (optimally) has the full context in the commit message.

My typical workflow is basically the same, but with putting all that context in the merge commit. This allows you to find it with a bit of work (blame to find the commit line, then figure out where that was merged in, then find the merge commit). Squash merge puts all that context in one commit, and keeps a linear history. I had assumed squash merge squashes the commits, then creates a merge commit still, which would mean you'd probably do something like combining messages for each commit in the squash commit message, then capturing the overview in merge commit.

The article says you can still find the individual commits via PR, which is a minor disadvantage as it means you can only do exploration of these via github. If you've deleted the topic branch on github are they still accessible? If it's been garbage collected by git (or never existed locally if you're looking at someone else's changes), is there a way to check them out?



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

Search: