Support Cherrypicking of multiple selected commits at once
Select a commit range using Shift-Click or Select multiple commits using Ctrl-Click
Select Cherrypick from the context menu
Under consideration Suggested by: Tyson Williams • Upvoted: yesterday • Comments: 12
There should be an option to select cherrypicking to one squashed commit or keep them one-by-one.
It should be possible at GitKraken client to cherry pick multiple commits. For now I need to do it at Git command line and it is annoying.
"Cherry pick multiple commits" (suggested by Eli on 2022-02-08), including upvotes (1) and comments (0), was merged into this suggestion.
Selecting multiple commit should offer to either "do" this or "open selection in interactive rebase view", so the order can be changed there and squashing is possible.
I find it _very_ surprising that selecting multiple commits then rightclicking on one of them only operates on the one you actually right-clicked, instead of the entire set of selected commits!
This really needs better UX. Make sure batch operations are properly supported for the items in the menu, or don't show those items in the right-click menu at all if multiple commits are selected!
I'm also very surprised this isn't supported. Cherry picking batches of commits should be supported across the board. This would be a huge convenience to the versioning lifecycle process.
I ran into a need for this today, my options were:
- Manually cherry-pick a long sequence of commits
- Lookup the relevant git CLI command syntax (`git cherry-pick 7f545188^..a7785c10`), then get the actual commit SHA values for the start and end of the range to use.
The CLI output for me was:
On branch feat/add-cherry-commit-range-to-this-branch
Cherry-pick currently in progress.
(run "git cherry-pick --continue" to continue)
(use "git cherry-pick --skip" to skip this patch)
(use "git cherry-pick --abort" to cancel the cherry-pick operation)
nothing to commit, working tree clean
The previous cherry-pick is now empty, possibly due to conflict resolution.
If you wish to commit it anyway, use:
git commit --allow-empty
Otherwise, please use 'git cherry-pick --skip'
Nothing appeared to happen. But then I tried `git cherry-pick --skip` and got some more output of each commit being applied.
GitKraken could improve that UX? Seems like a feature it could support?
need this function
I regularly have a need for this.
Not sure it's a good idea to squash cherry-picked commits. Git will not recognize the squashed commit to be equivalent to the original cherry-picked commits and will cause conflicts headaches.
Support cherrypicking of multiple selected commits at once now and I'll pay to upgrade now