From: "Santi Béjar" <santi@agolina.net>
To: "Junichi Uekawa" <dancer@netfort.gr.jp>
Cc: git@vger.kernel.org
Subject: Re: Main branch being maintained with 'git am', how do mere mortals interact without too much conflicts?
Date: Sat, 10 Jan 2009 15:47:48 +0100 [thread overview]
Message-ID: <adf1fd3d0901100647wd66a57bufb42d3d7d415e76d@mail.gmail.com> (raw)
In-Reply-To: <87vdsntnyd.dancerj%dancer@netfort.gr.jp>
2009/1/10 Junichi Uekawa <dancer@netfort.gr.jp>:
> Hi,
>
> I've been maintaining my Git repository (monthlyreport.git) where most
> people do not have push access, and I'm taking patches through e-mail
> with 'git am'.
>
> It often happens that I'm receiving patches which won't apply without
> a merge ('git am -3') and happen to be conflict-resolving often,
> because people work off a branch a few days before, and try to send
> patches nearer the deadline (This is a monthly meeting resume, which
> people are expected to submit their material, so this is kind of
> normal).
>
>
> One thing I'm worried is that users apparently have to throw away
> their own change or do some conflict resolution.
>
>
> User does
> git pull xxxx
> edit ...
> git add
> git commit
> git format-patch -o ... HEAD^
>
>
> I do bunch of
> git am -3 (which usually has a conflict of some way or other)
> git add XXXX
> git am -3 --resolve
> git push
>
>
> User then find that when doing
>
> git pull
>
> again, a conflict will occur.
>
>
>
> I am thinking of recommending the users to create a branch
>
> git checkout -b my-work-for-2009-01 origin
> edit ...
> git add
> git commit
> git format-patch -o ... HEAD^
> send the email
>
> and do
>
> git checkout master
> git pull
>
> and throw away their branches when they are included upstream.
>
>
>
> Something tells me the problem is that I'm probably using a workflow
> that resembles SVN too much, and users aren't used to branches yet.
> Has anybody found this to be a problem, or better yet, is there a
> better workflow?
I think your workflow is fine. When someone sends a patch s/he has to
know that their branch is a throw away branch to create the patch.
Another thing is if you send it as a public repository or as a bundle,
and even then the maintainer can decide to apply it merging or
cherry-picking.
There is a doc explaining " An overview of recommended workflows with
git" in git:
http://www.kernel.org/pub/software/scm/git/docs/gitworkflows.html
HTH,
Santi
next prev parent reply other threads:[~2009-01-10 14:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-10 11:11 Main branch being maintained with 'git am', how do mere mortals interact without too much conflicts? Junichi Uekawa
2009-01-10 14:47 ` Peter Harris
2009-01-10 16:29 ` Sitaram Chamarty
2009-01-10 14:47 ` Santi Béjar [this message]
2009-01-10 16:18 ` Sitaram Chamarty
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=adf1fd3d0901100647wd66a57bufb42d3d7d415e76d@mail.gmail.com \
--to=santi@agolina.net \
--cc=dancer@netfort.gr.jp \
--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).