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

Re: Unable to push remote branches

From
Carlos Martín Nieto <cmn@elego.de>
Date
May 6, 2011, 08:30 UTC
Message-ID
<20110506083003.GA6866@bee.lab.cmartin.tk>
In-Reply-To
<BANLkTimd887k0D=OL9rSuq6Z3FkhNAFAbQ@mail.gmail.com>
On Fri, May 06, 2011 at 10:17:37AM +0530, Srinidhi K V wrote:
Show 6 quoted lines
> Hi All,
> 
> I have a GIT repository in which there are lot of remote branches, I
> have created a bare git repository in my server. When I push my local
> repository to the bare repository in server using "git push --all"
> only local branches get pushed.

This is exactly what the man page says --all does. Remote branches are under refs/remotes/<remote>/heads. You might want to use --mirror or specify refs/remotes/* as the branches to push (I haven't tested this refspec, but I think it should work).

   cmn
Previous: Srinidhi K V
Message 2 of 2 in “Unable to push remote branches”
  1. Srinidhi K VMay 6, 2011
  2. Carlos Martín NietoMay 6, 2011

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.