From: Junio C Hamano <gitster@pobox.com>
To: David Lang <david@lang.hm>
Cc: "Lang\, David" <David.Lang@uhn.ca>,
"'Matt Seitz'" <mseitz@mhseitz.onmicrosoft.com>,
"git\@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: Question re. git remote repository
Date: Fri, 18 Jan 2013 13:38:19 -0800 [thread overview]
Message-ID: <7v1udiqiic.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <alpine.DEB.2.02.1301181320070.21503@nftneq.ynat.uz> (David Lang's message of "Fri, 18 Jan 2013 13:27:55 -0800 (PST)")
David Lang <david@lang.hm> writes:
> On Fri, 18 Jan 2013, Junio C Hamano wrote:
>
>> David Lang <david@lang.hm> writes:
>> ...
>>> developers then do their work locally, and after a change has been
>>> reviewed, pull it into the master repository.
>>
>> s/pull it into/push it into/; I think.
>
> fair enough, I always think in terms of pulling from feature branches
> into the main repository so that any merge conflicts get resolved. I
> didn't describe this clearly enough.
If you are assuming that the "main repository" has a working tree
and somebody goes there, runs "git pull" and manually resolves
conflicts, that may be asking for trouble down the road. It may be
sufficient for two-person group as long as they coordinate among
themselves so that only one of them uses that working tree at the
"main repository" at a time.
But in general, it is more common to have a bare repository without
any working tree as the "main repository", let a push that conflicts
fail, and have the pusher fetch from the "main repository" and fix
up the conflicts in his working repository before he tries to push
the cleaned-up result. That gives the pusher a chance to re-test
the result of integration with what he did not see while he was
developing what he attempted to push.
"pull" and "pull -rebase" are two ways to do that "fetch from the
'main' and fix up" step.
next prev parent reply other threads:[~2013-01-18 21:38 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-16 17:49 Question re. git remote repository Lang, David
2013-01-16 18:06 ` Konstantin Khomoutov
2013-01-16 18:21 ` Jeff King
2013-01-16 19:37 ` Konstantin Khomoutov
2013-01-16 22:59 ` Stephen Smith
2013-01-16 23:00 ` David Lang
2013-01-17 21:53 ` Lang, David
2013-01-18 5:51 ` Matt Seitz
2013-01-18 6:18 ` David Lang
2013-01-18 18:33 ` Lang, David
2013-01-18 21:56 ` Matt Seitz
2013-01-23 19:40 ` Lang, David
2013-01-23 20:24 ` Junio C Hamano
[not found] ` <201301181833.r0IIXNGb027544@smtpb02.one-mail.on.ca>
2013-01-18 20:27 ` David Lang
2013-01-18 21:20 ` Junio C Hamano
2013-01-18 21:27 ` David Lang
2013-01-18 21:38 ` Junio C Hamano [this message]
2013-01-18 23:10 ` Philip Oakley
[not found] ` <201301172153.r0HLrUIr001039@smtpb01.one-mail.on.ca>
2013-01-17 23:19 ` David Lang
2013-01-17 23:49 ` Jeff King
2013-01-16 20:07 ` David Lang
-- strict thread matches above, loose matches on Subject: below --
2013-01-16 21:07 Matt Seitz (matseitz)
2013-01-16 23:32 Matt Seitz (matseitz)
2013-01-17 0:21 ` David Lang
2013-01-17 1:09 ` Matt Seitz (matseitz)
2013-01-17 1:26 ` David Lang
2013-01-17 1:46 ` Matt Seitz (matseitz)
2013-01-17 1:59 ` David Lang
2013-01-17 2:25 ` Matt Seitz (matseitz)
2013-01-17 2:49 ` David Lang
2013-01-17 5:20 Matt Seitz
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=7v1udiqiic.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=David.Lang@uhn.ca \
--cc=david@lang.hm \
--cc=git@vger.kernel.org \
--cc=mseitz@mhseitz.onmicrosoft.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).