Git, how to choose a commit from one branch and apply to another
Sometimes you are working on a Git feature branch and you fix something you’d like to have on the master branch too, for immediate deploy. How do you merge that into master without having to take care of all the other commits made on that branch?
Solution: cherry pick!
git checkout master
git cherry-pick <SHA#>
Written by Flavio Copes
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#