Single Cherry-Pick With multiple Commit

Photo by Yancy Min on Unsplash

Cherry-Pick Multiple Commit

Normal you can use this method, cherry-pick with multiple commit you can cherry-pick any number of commit hashes at once. This example by partial hash.

//commits one by one
$ git cherry-pick commit1 commit2 commit3 commit4 commit5
example:
$ git cherry-pick 1e038f10 2f028f10 34138b11
//commits by range
$ git cherry-pick A^..B
example:
$ git cherry-pick 6653c90^..481981f

Use App (Sourcetree)

I prefer this method, and often use it too, you can check the changes that occurred in the commit. First thing to do is to use sourcetree Interactive rebase (Rebase children of -commit- interactively), squash commit what you want to joined.

Source: Author
Source : https://www.atlassian.com/blog/sourcetree/interactive-rebase-sourcetree

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store