From: Jeff King <peff@peff.net>
To: Junio C Hamano <gitster@pobox.com>
Cc: Sverre Rabbelier <srabbelier@gmail.com>,
David Lee <davidomundo@gmail.com>,
git@vger.kernel.org
Subject: Re: Separate default remotes for pulling and pushing
Date: Mon, 9 May 2011 18:04:59 -0400 [thread overview]
Message-ID: <20110509220459.GA3719@sigill.intra.peff.net> (raw)
In-Reply-To: <7viptjq0ua.fsf@alter.siamese.dyndns.org>
On Mon, May 09, 2011 at 09:45:49AM -0700, Junio C Hamano wrote:
> Jeff King <peff@peff.net> writes:
>
> > 4. Decentralized, you're a developer that publishes work via git. You
> > call the upstream maintainer "origin", so fetches are convenient
> > (and git does this for you at clone, after all). But pushing, even
> > though you probably always push to the same central, does not have
> > a convenient shorthand.
> >
> > This is David's case (and mine, and I suspect some other git
> > developers who do enough work that they want to make it publicly
> > available via git, or even just have backups). It's also encouraged
> > by sites like github, where you might clone the upstream's
> > repository, but then pushes your changes up to a personal "fork"
> > to let others see and merge them.
>
> In a sense, this is what I do as well. As you mentioned, I push to "ko"
> to publish, but when I "fetch" (or "pull") from "origin", I get the public
> copy I have at kernel.org like everybody else, and I do fetch every time
> after I push to "ko" to get the updated preformatted HTML and man page
> branches.
Interesting. Is your fetch from "ko" a no-op, or are you using it to
syncrhonize development between different machines?
> While I see why some people might want to say "origin" for both in such a
> set-up (when they do not push to multiple places like I do), I have a
> feeling that it is a misguided wish that would make themselves unnecessary
> confused than they already are, especially if the repositories used for
> pushing and fetching are in reality different repositories (one good
> example why it would be confusing is how remote tracking branches are
> updated).
I think it is important to note that calling them both "origin" is
definitely the wrong thing. The proposal is instead that "git push"
without a remote would default to something besides "origin". For people
who publish multiple places, it might even make sense for it to be an
iterative push to each place.
But this is all definitely a minor convenience. It is not that
world-shattering to type "git push my-fork", nor "git push my-fork &&
git push my-backup". Probably twice a week I accidentally try to push to
"git://git.kernel.org/pub/scm/git/git.git", but git make it clear that
is not allowed. :)
-Peff
next prev parent reply other threads:[~2011-05-09 22:05 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-07 8:10 Separate default remotes for pulling and pushing David Lee
2011-05-07 9:50 ` Sverre Rabbelier
2011-05-09 8:17 ` Jeff King
2011-05-09 8:34 ` David Lee
2011-05-09 11:10 ` Jeff King
2011-05-09 19:01 ` David Lee
2011-05-09 22:06 ` Jeff King
2011-05-09 16:45 ` Junio C Hamano
2011-05-09 22:04 ` Jeff King [this message]
2011-05-09 22:46 ` Junio C Hamano
2011-05-10 20:17 ` Jeff King
2011-05-10 12:47 ` Jay Soffian
2011-05-10 20:20 ` Jeff King
2011-05-10 21:12 ` Jay Soffian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110509220459.GA3719@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=davidomundo@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=srabbelier@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).