* Cherry-picking to remote branches
@ 2007-07-06 14:09 Sean Kelley
2007-07-06 14:26 ` Johannes Schindelin
2007-07-07 13:00 ` Sean Kelley
0 siblings, 2 replies; 6+ messages in thread
From: Sean Kelley @ 2007-07-06 14:09 UTC (permalink / raw)
To: git
I have been having trouble with the following workflow. I am trying
to push changes to a remote from a branch that is tracking it.
git clone git://mysite.com/data/git/linux-devel.git linux-devel
cd linux-devel
git remote add -m master -f linux-stable
git://mysite.com/data/git/linux-stable.git
git branch -r
linux-stable/HEAD
linux-stable/master
origin/HEAD
origin/master
git checkout -b stable linux-stable/master
git cherry-pick b3b1eea69a (a commit from linux-devel)
git push linux-stable
error: remote 'refs/heads/master' is not a strict subset of local ref
'refs/heads/master'. maybe you are not up-to-date and need to pull
first?
error: failed to push to 'git://mysite.com/data/git/linux-stable.git'
Thanks for your help,
Sean
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Cherry-picking to remote branches
2007-07-06 14:09 Cherry-picking to remote branches Sean Kelley
@ 2007-07-06 14:26 ` Johannes Schindelin
2007-07-06 14:39 ` Sean Kelley
2007-07-07 13:00 ` Sean Kelley
1 sibling, 1 reply; 6+ messages in thread
From: Johannes Schindelin @ 2007-07-06 14:26 UTC (permalink / raw)
To: Sean Kelley; +Cc: git
Hi,
On Fri, 6 Jul 2007, Sean Kelley wrote:
> [...]
>
> git checkout -b stable linux-stable/master
>
> git cherry-pick b3b1eea69a (a commit from linux-devel)
>
> git push linux-stable
>
> error: remote 'refs/heads/master' is not a strict subset of local ref
> 'refs/heads/master'. maybe you are not up-to-date and need to pull
> first?
> error: failed to push to 'git://mysite.com/data/git/linux-stable.git'
Since you are obviously only interested in pushing the stable branch, why
don't you
git push linux-stable stable
Hm?
If you do not specify which branches to push, "git push" will find all
refnames which are present both locally and remotely, and push those.
Evidently, however, your local "master" disagrees with the remote
"master".
Hth,
Dscho
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Cherry-picking to remote branches
2007-07-06 14:26 ` Johannes Schindelin
@ 2007-07-06 14:39 ` Sean Kelley
2007-07-06 15:01 ` VMiklos
0 siblings, 1 reply; 6+ messages in thread
From: Sean Kelley @ 2007-07-06 14:39 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: git
Hi
On 7/6/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> Hi,
>
> On Fri, 6 Jul 2007, Sean Kelley wrote:
>
> > [...]
> >
> > git checkout -b stable linux-stable/master
> >
> > git cherry-pick b3b1eea69a (a commit from linux-devel)
> >
> > git push linux-stable
> >
> > error: remote 'refs/heads/master' is not a strict subset of local ref
> > 'refs/heads/master'. maybe you are not up-to-date and need to pull
> > first?
> > error: failed to push to 'git://mysite.com/data/git/linux-stable.git'
>
> Since you are obviously only interested in pushing the stable branch, why
> don't you
>
> git push linux-stable stable
>
> Hm?
>
> If you do not specify which branches to push, "git push" will find all
> refnames which are present both locally and remotely, and push those.
> Evidently, however, your local "master" disagrees with the remote
> "master".
It is not entirely clear to me from the documentation. So I was
trying to cobble together something that seemed to make sense. I want
to work from the devel clone. On occasion I want to cherry-pick
changesets and push those to the stable branch. I don't want
everything that goes into devel to go into stable.
Sean
>
> Hth,
> Dscho
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Cherry-picking to remote branches
2007-07-06 14:39 ` Sean Kelley
@ 2007-07-06 15:01 ` VMiklos
2007-07-06 15:10 ` Sean Kelley
0 siblings, 1 reply; 6+ messages in thread
From: VMiklos @ 2007-07-06 15:01 UTC (permalink / raw)
To: Sean Kelley; +Cc: Johannes Schindelin, git
[-- Attachment #1: Type: text/plain, Size: 1346 bytes --]
Na Fri, Jul 06, 2007 at 09:39:47AM -0500, Sean Kelley <svk.sweng@gmail.com> pisal(a):
>> > git checkout -b stable linux-stable/master
>> >
>> > git cherry-pick b3b1eea69a (a commit from linux-devel)
>> >
>> > git push linux-stable
>> >
>> > error: remote 'refs/heads/master' is not a strict subset of local ref
>> > 'refs/heads/master'. maybe you are not up-to-date and need to pull
>> > first?
>> > error: failed to push to 'git://mysite.com/data/git/linux-stable.git'
>>
>> Since you are obviously only interested in pushing the stable branch, why
>> don't you
>>
>> git push linux-stable stable
>>
>> Hm?
>>
>> If you do not specify which branches to push, "git push" will find all
>> refnames which are present both locally and remotely, and push those.
>> Evidently, however, your local "master" disagrees with the remote
>> "master".
>
> It is not entirely clear to me from the documentation. So I was
> trying to cobble together something that seemed to make sense. I want
> to work from the devel clone. On occasion I want to cherry-pick
> changesets and push those to the stable branch. I don't want
> everything that goes into devel to go into stable.
what about this?
git push linux-stable stable:master
VMiklos
--
developer of Frugalware Linux - http://frugalware.org
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Cherry-picking to remote branches
2007-07-06 15:01 ` VMiklos
@ 2007-07-06 15:10 ` Sean Kelley
0 siblings, 0 replies; 6+ messages in thread
From: Sean Kelley @ 2007-07-06 15:10 UTC (permalink / raw)
To: VMiklos; +Cc: Johannes Schindelin, git
Hi,
On 7/6/07, VMiklos <vmiklos@frugalware.org> wrote:
> Na Fri, Jul 06, 2007 at 09:39:47AM -0500, Sean Kelley <svk.sweng@gmail.com> pisal(a):
> >> > git checkout -b stable linux-stable/master
> >> >
> >> > git cherry-pick b3b1eea69a (a commit from linux-devel)
> >> >
> >> > git push linux-stable
> >> >
> >> > error: remote 'refs/heads/master' is not a strict subset of local ref
> >> > 'refs/heads/master'. maybe you are not up-to-date and need to pull
> >> > first?
> >> > error: failed to push to 'git://mysite.com/data/git/linux-stable.git'
> >>
> >> Since you are obviously only interested in pushing the stable branch, why
> >> don't you
> >>
> >> git push linux-stable stable
> >>
> >> Hm?
> >>
> >> If you do not specify which branches to push, "git push" will find all
> >> refnames which are present both locally and remotely, and push those.
> >> Evidently, however, your local "master" disagrees with the remote
> >> "master".
> >
> > It is not entirely clear to me from the documentation. So I was
> > trying to cobble together something that seemed to make sense. I want
> > to work from the devel clone. On occasion I want to cherry-pick
> > changesets and push those to the stable branch. I don't want
> > everything that goes into devel to go into stable.
>
> what about this?
>
> git push linux-stable stable:master
That creates a new head on my remote server. Where as I wanted to
push to the remotes head.
Sean
>
> VMiklos
>
> --
> developer of Frugalware Linux - http://frugalware.org
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Cherry-picking to remote branches
2007-07-06 14:09 Cherry-picking to remote branches Sean Kelley
2007-07-06 14:26 ` Johannes Schindelin
@ 2007-07-07 13:00 ` Sean Kelley
1 sibling, 0 replies; 6+ messages in thread
From: Sean Kelley @ 2007-07-07 13:00 UTC (permalink / raw)
To: git
On 7/6/07, Sean Kelley <svk.sweng@gmail.com> wrote:
> I have been having trouble with the following workflow. I am trying
> to push changes to a remote from a branch that is tracking it.
Is there a better way to do this? Basically I want to push from the
branch to the remote. But it doesn't seem to work at least without
pushing the branch itself as a new head to the remote. Perhaps the
better way to do it is to have two different directories:
1) clone the linux-devel.git and have a read-only remote to
linux-stable to fetch changes and cherry-pick.
2) clone the linux-stable.git and have a read-only remote to
linux-devel to fetch changes and cherry-pick
So you would just cd to the specific one you want to work with.
Sean
>
> git clone git://mysite.com/data/git/linux-devel.git linux-devel
>
> cd linux-devel
>
> git remote add -m master -f linux-stable
> git://mysite.com/data/git/linux-stable.git
>
> git branch -r
>
> linux-stable/HEAD
> linux-stable/master
> origin/HEAD
> origin/master
>
> git checkout -b stable linux-stable/master
>
> git cherry-pick b3b1eea69a (a commit from linux-devel)
>
> git push linux-stable
>
> error: remote 'refs/heads/master' is not a strict subset of local ref
> 'refs/heads/master'. maybe you are not up-to-date and need to pull
> first?
> error: failed to push to 'git://mysite.com/data/git/linux-stable.git'
>
> Thanks for your help,
>
>
> Sean
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-07-07 13:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-06 14:09 Cherry-picking to remote branches Sean Kelley
2007-07-06 14:26 ` Johannes Schindelin
2007-07-06 14:39 ` Sean Kelley
2007-07-06 15:01 ` VMiklos
2007-07-06 15:10 ` Sean Kelley
2007-07-07 13:00 ` Sean Kelley
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).