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

Re: Separate default push/pull?

From
Jeff King <peff@peff.net>
Date
Feb 12, 2010, 01:05 UTC
Message-ID
<20100212010549.GA23303@coredump.intra.peff.net>
In-Reply-To
<7veikrl1m1.fsf@alter.siamese.dyndns.org>
On Thu, Feb 11, 2010 at 04:49:26PM -0800, Junio C Hamano wrote:
Show 6 quoted lines
> Jeff King <peff@peff.net> writes:
> 
> > I think what he would need is a "push.defaultRemote" config option,
> > which universally overrides branch.*.remote for pushing.
> 
> Or "branch.*.pushremote".

That doesn't address my point 2, which is needing to set it up for every branch.

> But does it really make sense to get changes from one place and send
> changes to somewhere completely unrelated?

It depends on your workflow. For git.git, your kernel.org repository is my "origin", but I publish my state to a mirror for backup purposes (and I don't publish for others to view, but I could very well do that, too). I type "git push peff.net" and that is not too much trouble. Typing just "git push" would be slightly more convenient, though.

In a distributed setup, I don't think it is that uncommon to not want to push to the place you pull from. You are generally pulling and building on somebody else's work, so if there is no central repo, you will be pushing to somewhere that is not where you pulled it.

-Peff
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 8 in “Separate default push/pull?”
  1. David AbrahamsFeb 11, 2010
  2. Chris PackhamFeb 11, 2010
  3. Jeff KingFeb 12, 2010
  4. Junio C HamanoFeb 12, 2010
  5. Jeff KingFeb 12, 2010
  6. Junio C HamanoFeb 12, 2010
  7. Jeff KingFeb 13, 2010
  8. David AbrahamsFeb 12, 2010

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.