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

Re: pushing remote branches

From
Lorenzo Bettini <bettini@dsi.unifi.it>
Date
Nov 16, 2009, 15:27 UTC
Message-ID
<hdrr1e$oub$1@ger.gmane.org>
In-Reply-To
<2e24e5b90911150304i1472ed13k6c60611ef2e9ba19@mail.gmail.com>
Sitaram Chamarty wrote:
Show 37 quoted lines
> 
>> Thus, if I had
>>
>> [remote "origin"]
>>            fetch = +refs/heads/*:refs/remotes/origin/*
>>            url = git@...
>> [branch "master"]
>>            remote = origin
>>            merge = refs/heads/master
>> [branch "experiments"]
>>            remote = origin
>>            merge = refs/heads/experiments
>>
>> instead of
>>
>> [remote "origin"]
>>            fetch = +refs/heads/*:refs/remotes/origin/*
>>            url = git://...
>> [branch "master"]
>>            remote = origin
>>            merge = refs/heads/master
>> [branch "experiments"]
>>            remote = origin
>>            merge = refs/heads/experiments
>>
>> I would have been able to push also to branch experiments?   Without having
>> to add
>>
>> [remote "experiments"]
>>            url = git@...
>>            fetch = +refs/heads/experiments:refs/remotes/experiments/experiments
>>
>> ?
> 
> (by the way: do you mean refs/remotes/origin/experiments in that last
> line above?)
> 
no, it's just like I wrote it...
you mean in
[remote "experiments"]
         url = git@gitorious.org...
         fetch = 
+refs/heads/experiments:refs/remotes/experiments/experiments
or in
[branch "experiments"]
         remote = origin
         merge = refs/heads/experiments
?
> Anyway to answer your question, I do not see the refspec line as the issue
> here, but the URL for the repo, which determines how you access it.
so this would have been enough:
 >> [remote "origin"]
 >>            fetch = +refs/heads/*:refs/remotes/origin/*
 >>            url = git://...
 >> [branch "master"]
 >>            remote = origin
 >>            merge = refs/heads/master
 >> [branch "experiments"]
 >>            remote = origin
 >>            merge = refs/heads/experiments
?
thanks
	Lorenzo
-- 
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
BLOGS: http://tronprog.blogspot.com  http://longlivemusic.blogspot.com
Previous: Sitaram ChamartyNext: Junio C Hamano
Message 5 of 6 in “pushing remote branches”
  1. Lorenzo BettiniNov 14, 2009
  2. Sitaram ChamartyNov 15, 2009
  3. Lorenzo BettiniNov 15, 2009
  4. Sitaram ChamartyNov 15, 2009
  5. Lorenzo BettiniNov 16, 2009
  6. Junio C HamanoNov 16, 2009

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.