* 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
* Re: Applying the changes of a specific commit from one branch to another.
[not found] ` <22d8f6460903011824t18c01d83p16c05af9f9a12ee5@mail.gmail.com>
@ 2009-03-02 2:52 ` Chris Packham
0 siblings, 0 replies; 3+ messages in thread
From: Chris Packham @ 2009-03-02 2:52 UTC (permalink / raw)
To: omar-uk; +Cc: git
On Mon, Mar 2, 2009 at 3:24 PM, omar-uk <omarnetbox@googlemail.com> wrote:
> Many Thanks Chris! for the quick response.
>
> What I do right click on? I tried the commit message but not getting
> any menus or anything. BTW I'm using a mac not sure if it makes a
> difference.
Hmm, Doesn't mac imply only one mouse button? Anyway whatever the
equivalent to right click is you click on the headline (also referred
to as the subject) in the tree (top half of the gitk window).
Also for mac a lot of people are using GitX which has similar
functionality to gitk (I can't claim any knowledge about it).
^ 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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).