17/08/2014 - GIT
Your friend is working on a task in his own branch and has many commits. Now you want to get a particular commit from his branch into your branch. This is when we use
git cherry-pick command. For more information, click git cherry-pick link.
inanzzz@inanzzz:~/project$ git remote update
remote: Counting objects: 43, done.
remote: Compressing objects: 100% (43/43), done.
remote: Total 43 (delta 10), reused 0 (delta 0)
Unpacking objects: 100% (43/43), done.
* [new branch] sprint-bugs -> origin/sprint-bugs
We want to cherry pick commit "cf2159604cca06476734ad15bc5655ce7ac7b35e".
inanzzz@inanzzz:~/project$ git cherry-pick cf2159604cca06476734ad15bc5655ce7ac7b35e
[bugfixes 6d0dfa1] Fix design serialisation
1 file changed, 7 insertions(+), 4 deletions(-)