From: "Jakub Narębski" <jnareb@gmail.com>
To: "Mayne, Joe" <JMayne@LSAC.org>,
"git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: Git Branching - Best Practices - Large project - long running branches
Date: Fri, 31 Mar 2017 15:02:49 +0200 [thread overview]
Message-ID: <d336369a-3b1c-c311-2155-1e08ae669cdb@gmail.com> (raw)
In-Reply-To: <4bb4871d8a78402bbef91231134a613b@EX1-PRD.lsac.org>
W dniu 31.03.2017 o 13:55, Mayne, Joe pisze:
> Hello, I work on a team of 15+ developers. We are trying to
> determine best practices for branching because we have had code
> stepped on when a developer has a long running feature branch.
>
> We have a Development branch. Developers are instructed to create a
> branch when they begin working on a feature. Sometimes a feature may
> take a week or two to complete. So a Developer1 creates a branch and
> works for a week or two. In the meantime, other developers have
> created feature branches from Development and merged them back into
> Development.
>
> At this point we are not certain if Developer1 should:
>
> * Periodically merge the evolving Origin/Development into their
> Feature branch and when they are done work merge their feature branch
> into Origin/Development.
This is one possible solution.
Another variant of this would be to enable rerere feature (reuse
recorded resolution), and periodically do a trial merge from the
Origin/Development branch to prime the rerere mechanism (discarding
those merges after resolving them).
>
> OR
>
> * Stay on their pure feature branch and when they are done merge
> into Origin/Development.
>
> We have had issues with developers stepping on code when they have
> long running branches. We are looking for a best practices.
There is yet another solution:
OR
* Periodically _rebase_ pure feature branch on top of current version
of Origin/Development, or do such rebase (perhaps an interactive one
to clean-up feature development steps) before pull request, before
they are to merge feature branch into Origin/Development.
You can also try to use third-party git-imerge tool to help merging
long divergent branches.
HTH,
--
Jakub Narębski
next prev parent reply other threads:[~2017-03-31 13:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-31 11:55 Git Branching - Best Practices - Large project - long running branches Mayne, Joe
2017-03-31 13:02 ` Jakub Narębski [this message]
2017-03-31 13:21 ` Randall S. Becker
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=d336369a-3b1c-c311-2155-1e08ae669cdb@gmail.com \
--to=jnareb@gmail.com \
--cc=JMayne@LSAC.org \
--cc=git@vger.kernel.org \
/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).