* Applying the changes of a specific commit from one branch to another.
@ 2009-03-02 1:44 NewToGit
2009-03-02 1:58 ` Chris Packham
0 siblings, 1 reply; 3+ messages in thread
From: NewToGit @ 2009-03-02 1:44 UTC (permalink / raw)
To: git
Applying the changes of a specific commit from one branch to another.
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?
Thanks for the help!
NewToGit
--
View this message in context: http://www.nabble.com/Applying-the-changes-of-a-specific-commit-from-one-branch-to-another.-tp22280717p22280717.html
Sent from the git mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Applying the changes of a specific commit from one branch to another.
2009-03-02 1:44 Applying the changes of a specific commit from one branch to another NewToGit
@ 2009-03-02 1:58 ` Chris Packham
[not found] ` <22d8f6460903011824t18c01d83p16c05af9f9a12ee5@mail.gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Chris Packham @ 2009-03-02 1:58 UTC (permalink / raw)
To: NewToGit; +Cc: git
On Mon, Mar 2, 2009 at 2:44 PM, NewToGit <omarnetbox@gmail.com> 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-03-02 2:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-02 1:44 Applying the changes of a specific commit from one branch to another NewToGit
2009-03-02 1:58 ` Chris Packham
[not found] ` <22d8f6460903011824t18c01d83p16c05af9f9a12ee5@mail.gmail.com>
2009-03-02 2:52 ` Chris Packham
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.