You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cherry picking on the other hand is too much of a burden regarding PRs. Github provides a nice workflow regarding merging providing a 'delete branch' in the end.
In my opinion a messed up branch with lots of unrelated changes is a bad thing just as much as a squashed branch with only a single changeset.
So personally, I prefer a approach somewhere inbetween: The commit history is there for a reason and it should contain each independent changeset. This allows to later move, merge, rebase or cherry-pick changesets between branches and to more easily see what's actually going on.
Squashing may still be useful if the branch is cluttered with uninteresting/useless commits that can be grouped to a single changeset (like "remove A from B", "remove A from C", "remove A from D" could be squashed to a single "remove A from B,C and D" commit).
Other than that, your suggested workflow looks okay to me.
That being said, I always prefix incomplete PRs with a "[WIP]" (work-in-progress) marker to indicate they're not yet to be merged and still have some incomplete tasks. This has proven to be quite useful as it highlights the current working tasks and encourages input to the current stage.
After merging #22 not paying enough attention we need to make sure how to merge PRs.
I personally don't care about my commit messages but as I wrote in http://build2be.com/content/do-we-need-git-squash-and-thus-forced-pushes squashing is an ok workflow.
Cherry picking on the other hand is too much of a burden regarding PRs. Github provides a nice workflow regarding merging providing a 'delete branch' in the end.
So let's do the squash workflow:
@clue what do you think?
The text was updated successfully, but these errors were encountered: