If you want  to apply the commit in the same branch, ie, just change the
commit order, you can use git rebase -i. You just need to pass the hash of
the commit before the one you want to change and change the order of the
commits in the text editor that are showed to you when you use the command.


William Seiti Mizuta
@williammizuta
Desenvolvedor da Caelum


On Thu, Jan 17, 2013 at 5:36 PM, <python.pro...@gmail.com> wrote:

> Hi,
>
> 1. I am trying to apply a commit which was done a while back on the HEAD.
>
> git log --oneline shows the following and lets say I want to apply the
> commit 2618b13 on the HEAD.
> 2617b13
> 2614b13
> 2611b13
> 2618b13
> 2618b13 --> I want to apply this change on the HEAD
>
> I am trying the following command but
> 1.git format-patch 2618b13f479b45f49ee08ffb2203d875882dea3e^..
> 2618b13f479b45f49ee08ffb2203d875882dea3e
> creates a patch cleanly
>
> 2.Now I want to apply this patch am using patch -p1
> 0001-Update-Android.mk-to-only-support-Open-Source-builds.patch,it gets
> stuck
>
> How to proceed..are there any other options to do the above?
>
> --
>
>
>

-- 


Reply via email to