0

What does git cherry-pick branch_name do?

Does it cherry-pick only the latest commit from the branch with the name branch_name onto my current branch, or does it cherry-pick a range of commits from that branch, and if so what range? Bonus question: in the latter case, how would I cherry-pick all commits from a given branch?

fuenfundachtzig
  • 7,952
  • 13
  • 62
  • 87

1 Answers1

1

It takes just the latest commit of that branch - https://git-scm.com/docs/git-cherry-pick#Documentation/git-cherry-pick.txt-codegitcherry-pickmastercode.

For the "bonus" question, see this thread: How to git cherrypick all changes introduced in specific branch.

kosist
  • 2,868
  • 2
  • 17
  • 30