Cherry-picking Commits from other branches
First make sure your in the branch you want to place the commit,
git co master
Next tell git to cherry pick a specific commit and add it on top of your current branch (you don't have to specify which branch the target commit is in, just the unique id)
git cherry-pick [commit-hash]
If successful the commit will be placed at the top of your current branch.
Written by John Antoni Griffiths
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#