From: Jon Seymour <jon.seymour@gmail.com>
To: Johannes Sixt <j.sixt@viscovery.net>, git@vger.kernel.org
Subject: Re: Rebasing with merges and conflict resolutions
Date: Sat, 27 Mar 2010 05:11:01 +1100 [thread overview]
Message-ID: <2cfc40321003261111x5a500ef4q9b0caea65a48b21f@mail.gmail.com> (raw)
In-Reply-To: <20100326171603.GA12592@kiwi.sharlinx.com>
> > > In the future, is there a better way for two developers to work in the same
> > > back-and-forth fashion (code ping pong!) without leading to *heavily* merged
> > > histories that are unpossible to untangle?
> >
> > Discipline. Keep developers focused on their topic. Merge only after a
> > topic is completed. Do not give in to "oh, *your* feature is cool, *I*
> > want to have it now, so I merge it".
>
> I think that's easier said than done, with backend work I'm able to clearly
> define topics, whereas the front-end developers (as it is in this case)
> typically overlap ever so slightly in their work
>
If two developers are working together, then set them up so that each
has a public and private repo.
The rule should be:
1. before publishing, A fetches from B to ensure that A has B's latest
public tip
2. A confirms that B's tip includes A's public tip
3. A rebases own private changes (between A public and A private) onto
B's public tip
4. A pushes her rebased private tip to her own public repo
5. B then repeats the cycle with the roles reversed.
This will work provided that B doesn't republish after 2 and before 4,
so does require that A and B talk to each other before performing step
4.
jon.
next prev parent reply other threads:[~2010-03-26 18:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-26 3:11 Rebasing with merges and conflict resolutions R. Tyler Ballance
2010-03-26 7:02 ` Johannes Sixt
2010-03-26 17:16 ` R. Tyler Ballance
2010-03-26 18:11 ` Jon Seymour [this message]
2010-03-26 17:36 ` Jon Seymour
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=2cfc40321003261111x5a500ef4q9b0caea65a48b21f@mail.gmail.com \
--to=jon.seymour@gmail.com \
--cc=git@vger.kernel.org \
--cc=j.sixt@viscovery.net \
/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).