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

Re: Local branch to remote branch translation

From
Jon Smirl <jonsmirl@gmail.com>
Date
Nov 11, 2007, 19:36 UTC
Message-ID
<9e4733910711111136s20616468sd70b4bb19e7f3d0c@mail.gmail.com>
In-Reply-To
<A1B9CE91-15E0-4298-A606-68BB31541574@zib.de>
On 11/11/07, Steffen Prohaska <prohaska@zib.de> wrote:
Show 23 quoted lines
>
> On Nov 11, 2007, at 7:02 PM, Jon Smirl wrote:
>
> > Is the remote config not correct?
>
> This is the configuration for remote "dreamhost". In your
> previous mail you also mentioned a remote "linus". But
> this seems to be unrelated to your question.
>
>
> > [remote "dreamhost"]
> >         url = ssh://jonsmirl1@git.digispeaker.com/~/mpc5200b.git
> >         fetch = +refs/heads/*:refs/remotes/dreamhost/*
>
> correct. This fetches the branches from the remote and stores
> them locally as remote tracking branches "dreamhost/<branch>".
>
> >         push = +refs/heads/*:refs/remotes/linus/*
>
> This "renames" your branches when you push. Your local branches
> get pushed to "dreamhost" and are stored there as remote branches
> "linus/<branch>". From your previous mail I assume you like to store
> them as normal branches. You'd need to say

I did this part incorrectly. I was trying to push my local definition of the linus remote to the dreamhost repo so that when someone clones dreamhost linus would be defined in their repo.

jonsmirl@terra:~/mpc5200b$ git remote show linus
* remote linus
  URL: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
How do I push the definition of the linus remote repo?
Show 19 quoted lines
>
>         push = +refs/heads/*:refs/heads/*
>
> But most likely you don't want to force here, that is drop '+'.
> And you don't need to explicitly say that you want to store a branch
> under the same name. So, probably you want
>
>         push = refs/heads/*
>
> But maybe you could even drop the push line completely. Then, only
> existing branches would be pushed and if you want to create a new
> remote branch on "dreamhost" you'd need to explicitly tell git with
>
>         git push dreamhost <new-branch>
>
> Does this help?
>
>         Steffen
>
-- 
Jon Smirl
jonsmirl@gmail.com
Previous: Steffen ProhaskaNext: Steffen Prohaska
Message 4 of 10 in “Local branch to remote branch translation”
  1. Jon SmirlNov 11, 2007
  2. Jon SmirlNov 11, 2007
  3. Steffen ProhaskaNov 11, 2007
  4. Jon SmirlNov 11, 2007
  5. Steffen ProhaskaNov 11, 2007
  6. Jon SmirlNov 11, 2007
  7. Steffen ProhaskaNov 11, 2007
  8. Jon SmirlNov 11, 2007
  9. Steffen ProhaskaNov 12, 2007
  10. Jon SmirlNov 12, 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.