Wednesday, 10 September 2014

Git: cherry-pick the last commit on another branch

git cherry-pick `git log -1 --format='%H' <branchname_to_cherry_pick_from>`

# This assumes you are running this in git bash and that you have checked out the branch that you want to cherry-pick into.

No comments:

Post a Comment