{"thread":{"id":"27278","subject":"Unable to push remote branches","startedAt":"2011-05-06T04:47:37Z","lastAt":"2011-05-06T08:30:03Z","messageCount":2,"participants":["Srinidhi K V","Carlos Martín Nieto"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"167211","messageId":"BANLkTimd887k0D=OL9rSuq6Z3FkhNAFAbQ@mail.gmail.com","threadId":"27278","inReplyTo":null,"subject":"Unable to push remote branches","fromName":"Srinidhi K V","fromEmail":"srinidhikv@yahoo.co.in","sentAt":"2011-05-06T04:47:37Z","receivedAt":"2011-05-06T04:47:37Z","isPatch":false,"sender":{"key":"srinidhikv@yahoo.co.in","avatar":null},"body":"Hi All,\n\nI have a GIT repository in which there are lot of remote branches, I\nhave created a bare git repository in my server. When I push my local\nrepository to the bare repository in server using \"git push --all\"\nonly local branches get pushed.\nHowever when I use \"git branch -r\" I get remote branches which tracks\nto local branch.\nI need push all the existing remote branches from my local repo to\nbare repository in my server. How do i do that? Any pointer would be\nof great help.\n\nThanks in Advance\nSrinidhi KV\n"},{"id":"167231","messageId":"20110506083003.GA6866@bee.lab.cmartin.tk","threadId":"27278","inReplyTo":"BANLkTimd887k0D=OL9rSuq6Z3FkhNAFAbQ@mail.gmail.com","subject":"Re: Unable to push remote branches","fromName":"Carlos Martín Nieto","fromEmail":"cmn@elego.de","sentAt":"2011-05-06T08:30:03Z","receivedAt":"2011-05-06T08:30:03Z","isPatch":false,"sender":{"key":"cmn@elego.de","avatar":"https://avatars.githubusercontent.com/u/335443?v=4"},"body":"On Fri, May 06, 2011 at 10:17:37AM +0530, Srinidhi K V wrote:\n> Hi All,\n> \n> I have a GIT repository in which there are lot of remote branches, I\n> have created a bare git repository in my server. When I push my local\n> repository to the bare repository in server using \"git push --all\"\n> only local branches get pushed.\n\nThis is exactly what the man page says --all does. Remote branches are\nunder refs/remotes/<remote>/heads. You might want to use --mirror or\nspecify refs/remotes/* as the branches to push (I haven't tested this\nrefspec, but I think it should work).\n\n   cmn\n"}]}