From: Jay Soffian <jaysoffian@gmail.com>
To: John Dlugosz <JDlugosz@tradestation.com>
Cc: git@vger.kernel.org, Junio C Hamano <gitster@pobox.com>
Subject: Re: fetch and pull
Date: Mon, 16 Mar 2009 20:09:31 -0400 [thread overview]
Message-ID: <76718490903161709v6d8d09f6k17d2fe1a5e56fb03@mail.gmail.com> (raw)
In-Reply-To: <450196A1AAAE4B42A00A8B27A59278E70A2AF0A9@EXCHANGE.trad.tradestation.com>
On Mon, Mar 16, 2009 at 6:33 PM, John Dlugosz <JDlugosz@tradestation.com> wrote:
> I think the difference is because you mail in your changes to master,
> and I'm having developers cooperate in advancing that branch. The only
> thing I need a local copy of dev for is to checkout during the "work
> completed" phase, in which case the topic's result is added to the top
> of dev for all to see, either as a single amalgamated checkin or a
> non-ff merge.
Why is the topic a non-ff merge? Here's a normal non-email workflow:
$ git clone git://central/repo.git
$ cd repo
$ edit, commit, edit, commit, looks good
$ git fetch origin
$ git log -p master..origin/master # (1)
$ git merge origin/master
$ compile, test, etc
$ git push origin master # (2)
(1) inspect changes in origin/master, make sure you want to merge
(2) this fast-forwards git://central/repo.git/refs/heads/master from
local master
Or, if you prefer topic branches:
$ git clone git://central/repo.git
$ cd repo
$ git checkout -b topic origin/master
$ edit, commit, edit, commit, looks good
$ git checkout master
$ git pull # (1)
$ git merge topic
$ compile, test, etc
$ git push origin master (2)
$ git branch -d topic
(1) this fast-forwards local master since local development is
on topic.
(2) as above, this fast-forwards
git://central/repo.git/refs/heads/master from local master
So this way git://central/repo.git/refs/heads/master is never reset.
But, if you do have a valid reason for resetting, then what I said in
my previous message still applies.
j.
next prev parent reply other threads:[~2009-03-17 0:12 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <AcmmaYOKDtJohyDSQt2B3xvVeIPNPw==>
2009-03-16 19:00 ` fetch and pull John Dlugosz
2009-03-16 20:03 ` Jay Soffian
2009-03-16 20:39 ` John Dlugosz
2009-03-16 20:43 ` Sverre Rabbelier
2009-03-17 8:34 ` Jeff King
2009-03-17 8:36 ` Sverre Rabbelier
2009-03-16 22:14 ` Jay Soffian
2009-03-16 22:33 ` John Dlugosz
2009-03-17 0:09 ` Jay Soffian [this message]
2009-03-17 14:58 ` John Dlugosz
2009-03-17 16:21 ` Jay Soffian
2009-03-17 16:44 ` John Dlugosz
2009-03-17 21:31 ` Nanako Shiraishi
2009-03-18 8:58 ` Björn Steinbrink
2009-03-18 9:37 ` Junio C Hamano
2009-03-18 15:18 ` John Dlugosz
2009-03-18 15:31 ` Björn Steinbrink
2009-03-18 16:50 ` John Dlugosz
2009-03-18 0:37 ` Jeff King
2009-03-06 19:04 John Dlugosz
2009-03-06 19:27 ` Junio C Hamano
2009-03-06 20:44 ` Jakub Narebski
2009-03-06 20:49 ` Junio C Hamano
2009-03-06 22:11 ` John Dlugosz
2009-03-06 22:21 ` Junio C Hamano
2009-03-07 8:00 ` Bryan Donlan
2009-03-07 20:15 ` Junio C Hamano
2009-03-09 15:27 ` John Dlugosz
2009-03-09 15:08 ` John Dlugosz
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=76718490903161709v6d8d09f6k17d2fe1a5e56fb03@mail.gmail.com \
--to=jaysoffian@gmail.com \
--cc=JDlugosz@tradestation.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.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).