17/08/2014 - GIT
We have been investing plenty of personal time and energy for many years to share our knowledge with you all. However, we now need your help to keep this blog running. All you have to do is just click one of the adverts on the site, otherwise it will sadly be taken down due to hosting etc. costs. Thank you.
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(-)