git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Pushing symbolic references to remote repositories?
@ 2012-12-21 19:53 Dun Peal
  2012-12-21 21:54 ` Shawn Pearce
  0 siblings, 1 reply; 6+ messages in thread
From: Dun Peal @ 2012-12-21 19:53 UTC (permalink / raw)
  To: Git ML

Hi,

I need to share a symbolic reference - essentially, a named pointer to
another reference - among multiple repositories.

As shown in the code below, I can successfully create a local
symbolic-ref `foo_ptr` to branch `foo`, but can't push it to a remote,
in this case `origin`:

$ git branch foo; git symbolic-ref foo_ptr refs/heads/foo; git rev-parse foo_ptr
fbfec27dc6d42d48ca5d5b178caa34c666a4c39b
$ git push origin foo foo_ptr
error: dst ref refs/heads/foo receives from more than one src.

Is there a clean and reliable way to do that, or are symbolic
references just not meant to be shared?

Thanks, D.

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

end of thread, other threads:[~2012-12-23  1:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-21 19:53 Pushing symbolic references to remote repositories? Dun Peal
2012-12-21 21:54 ` Shawn Pearce
2012-12-21 23:11   ` Junio C Hamano
2012-12-22  9:26     ` Andreas Schwab
2012-12-22 18:27       ` Junio C Hamano
2012-12-23  1:10         ` Sitaram Chamarty

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).