git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Cherry-picking to remote branches

From
SKSean Kelley <svk.sweng@gmail.com>
Date
Jul 7, 2007, 13:00 UTC
Message-ID
<a2e879e50707070600qc89b4dey4847d7bb6d01e1e5@mail.gmail.com>
In-Reply-To
<a2e879e50707060709oc9fe8b3k8e594f1cb6e10437@mail.gmail.com>
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
Show 31 quoted lines
>
> 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
>
Previous: Sean Kelley
Message 6 of 6 in “Cherry-picking to remote branches”
  1. Sean KelleyJul 6, 2007
  2. Johannes SchindelinJul 6, 2007
  3. Sean KelleyJul 6, 2007
  4. VMiklosJul 6, 2007
  5. Sean KelleyJul 6, 2007
  6. Sean KelleyJul 7, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.