git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Unable to push remote branches
@ 2011-05-06  4:47 Srinidhi K V
  2011-05-06  8:30 ` Carlos Martín Nieto
  0 siblings, 1 reply; 2+ messages in thread
From: Srinidhi K V @ 2011-05-06  4:47 UTC (permalink / raw)
  To: git

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.
However when I use "git branch -r" I get remote branches which tracks
to local branch.
I need push all the existing remote branches from my local repo to
bare repository in my server. How do i do that? Any pointer would be
of great help.

Thanks in Advance
Srinidhi KV

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Unable to push remote branches
  2011-05-06  4:47 Unable to push remote branches Srinidhi K V
@ 2011-05-06  8:30 ` Carlos Martín Nieto
  0 siblings, 0 replies; 2+ messages in thread
From: Carlos Martín Nieto @ 2011-05-06  8:30 UTC (permalink / raw)
  To: Srinidhi K V; +Cc: git

[-- Attachment #1: Type: text/plain, Size: 592 bytes --]

On Fri, May 06, 2011 at 10:17:37AM +0530, Srinidhi K V wrote:
> 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

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-05-06  8:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-06  4:47 Unable to push remote branches Srinidhi K V
2011-05-06  8:30 ` Carlos Martín Nieto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).