Re: Applying the changes of a specific commit from one branch to another.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 2, 2009 at 2:44 PM, NewToGit <omarnetbox@xxxxxxxxx> wrote:
> Scenario:
>
> - branched off master and created story123 branch.
> - made three separate change commits to story123:
>        - 'fixed bug123'
>        - 'fixed bug456'
>        - 'fixed bug789'
>
> - now I realized that I need to apply only one commit 'fixed bug789' to
> master
>
> Question: What's the best way to go about doing this?
>

What you want to do is "cherry-pick" the commit 'fixed bug789'. With
git there are several ways to do this but the one I'd use is the
cherry-pick functionality of gitk.

git checkout master
gitk --all
<right click on the 'fixed bug789' commit and select "cherry-pick this commit">

Like I say there are plenty of ways to do something like this. I'm
sure you'll get plenty more responses.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux