Re: [ITCH] Specify refspec without remote
- From
Jeff King <peff@peff.net>
- Date
- Apr 10, 2013, 17:29 UTC
- Message-ID
- <20130410172914.GB16908@sigill.intra.peff.net>
- In-Reply-To
- <7vzjx6mjct.fsf@alter.siamese.dyndns.org>
On Wed, Apr 10, 2013 at 09:38:26AM -0700, Junio C Hamano wrote:
Show 13 quoted lines
> Jeff King <peff@peff.net> writes: > > > On Tue, Apr 09, 2013 at 04:13:32PM -0700, Jonathan Nieder wrote: > > > >> Random idea: today you can do > >> > >> git push origin master; # push branch master to remote origin > >> git push --multiple origin korg; # push default refspec to 2 remotes > > > > Can we do "git push --multiple" today? > > You can have multiple destination URLs for a single remote nickname. > Wouldn't that be sufficient for regular publishing purposes?
Yes, though that is different than specifying two different remotes, which may have their own sets of default refspecs (i.e., what Jonathan wrote above). If they are two URLs of the same configured remote, there is no question that they should respect the same refspecs.
-Peff