From: Junio C Hamano <gitster@pobox.com>
To: Ingo Rohloff <lundril@gmx.de>
Cc: git@vger.kernel.org
Subject: Re: Documentation about "push.default=upstream" is confusing
Date: Mon, 10 Feb 2014 11:06:00 -0800 [thread overview]
Message-ID: <xmqqd2iuss87.fsf@gitster.dls.corp.google.com> (raw)
In-Reply-To: <20140209163157.GA7652@localhost> (Ingo Rohloff's message of "Sun, 9 Feb 2014 17:31:57 +0100")
Ingo Rohloff <lundril@gmx.de> writes:
> To handle that I setup several remote tracking branches called:
> repo1_master (tracks repo1/master)
> repo2_master (tracks repo2/master)
> reap3_master (tracks repo3/master)
>
> Now without "push.default=upstream" I would have to either always explicitly
> do something like:
> git push repo1 repo1_master:master
> git push repo2 repo2_master:master
If you think about your interaction with people who are only looking
at "repo1" alone, you _are_ using a centralized workflow. You are
not the only one who update their 'master'; other people push there
to update that 'master' and you pull it in to keep you up to date
and further build your changes on top. Such an interaction with
other people by using repo1 as the shared meeting point is well
served by the push-to-upstream mechanism, and that kind of
interaction is called "centralized workflow". The illustration from
you is running one centralized workflow with each of the three
repositories.
The de-centralized workflow the message hints (but does not talk
about) is different. It is not uncommon to pull from one place and
then to push the result out to your own publishing branch
(e.g. clone from anna, fetch to keep up to date with her, work on
it, publish to your repository to tell her to fetch from you), and
push-to-upstream is not very well suited for that topology. You may
clone her "for-bob" branch, but you do not push it back to her
repository to update her "for-bob" branch.
prev parent reply other threads:[~2014-02-10 19:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-09 16:31 Documentation about "push.default=upstream" is confusing Ingo Rohloff
2014-02-10 19:06 ` Junio C Hamano [this message]
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=xmqqd2iuss87.fsf@gitster.dls.corp.google.com \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=lundril@gmx.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.