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?
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 .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.