Return-Path: X-Original-To: apmail-flex-dev-archive@www.apache.org Delivered-To: apmail-flex-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3C12EFE75 for ; Tue, 19 Mar 2013 19:12:44 +0000 (UTC) Received: (qmail 15229 invoked by uid 500); 19 Mar 2013 19:12:43 -0000 Delivered-To: apmail-flex-dev-archive@flex.apache.org Received: (qmail 15144 invoked by uid 500); 19 Mar 2013 19:12:43 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Received: (qmail 15133 invoked by uid 99); 19 Mar 2013 19:12:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Mar 2013 19:12:43 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [198.102.62.103] (HELO Vail.esri.com) (198.102.62.103) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Mar 2013 19:12:39 +0000 Received: from RED-INF-EXCS-P3.esri.com (red-inf-excs-p3.esri.com [10.50.4.83]) by Vail.esri.com (8.13.7+Sun/8.13.7) with ESMTP id r2JJCIRt021886 for ; Tue, 19 Mar 2013 12:12:18 -0700 (PDT) Received: from RED-INF-EXMB-P1.esri.com ([169.254.1.29]) by RED-INF-EXCS-P3.esri.com ([::1]) with mapi id 14.02.0328.009; Tue, 19 Mar 2013 12:12:18 -0700 From: Dasa Paddock To: "" Subject: Re: [3/3] git commit: Merge branch 'develop' of https://git-wip-us.apache.org/repos/asf/flex-sdk into develop Thread-Topic: [3/3] git commit: Merge branch 'develop' of https://git-wip-us.apache.org/repos/asf/flex-sdk into develop Thread-Index: AQHOJKBhiS6Gi8PqIEGuG9ulmzh0I5itcUgAgAALIICAAAOeAIAABVkAgAAHTICAAANpgIAABomAgAAKGgCAAAMdgIAAB7wAgAACFYCAAA5gAIAABp0AgAAHEgCAAARzAIAACUiA Date: Tue, 19 Mar 2013 19:12:18 +0000 Message-ID: <85E0E68E8961D64E9200C534AC5E1B240EE9357A@RED-INF-EXMB-P1.esri.com> References: <20130319123712.98AD33978E@tyr.zones.apache.org> <5294CF39-2DE4-41E2-9985-78AFADA516C9@classsoftware.com> <96B3F50E088E476691CAD6C92167B885@ixsoftware.nl> <85E0E68E8961D64E9200C534AC5E1B240EE93009@RED-INF-EXMB-P1.esri.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.50.254.250] Content-Type: text/plain; charset="iso-8859-1" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Here's one way to avoid having "git pull" create a merge commit on your dev= elop branch. Checkout your develop branch and then run: $ git pull --ff-only=20 If this give you an error it means you have commits on your develop branch = that are ahead of the remote develop branch. So then, run: $ git rebase --preserve-merges origin/develop This will rebase your commits on your local develop branch onto the remote = develop branch. (Use -p for short.) You could use "git pull --rebase" instead but this does not preserve merge = commits, which is what I commonly have following the git flow workflow. For= more info on this, see: http://notes.envato.com/developers/rebasing-merge-commits-in-git/ --Dasa On Mar 19, 2013, at 11:39 AM, Fr=E9d=E9ric THOMAS = wrote: >> This is the best explanation of when to merge vs. rebase that I've seen: > http://blog.sourcetreeapp.com/2012/08/21/merge-or-rebase/ >=20 > Added as comment to the wiki >=20 > -Fred > -----Message d'origine----- From: Fr=E9d=E9ric THOMAS > Sent: Tuesday, March 19, 2013 7:23 PM > To: dev@flex.apache.org > Subject: Re: [3/3] git commit: Merge branch 'develop' of https://git-wip-= us.apache.org/repos/asf/flex-sdk into develop >=20 > Hi, >=20 > This document is perfect, the maybe only little point it didn't cover in > "Keeping the feature branch up to date" is the possibility interactively > rebase your commit, which allows in case of too much conflicts, to abord = it, > reset --hard and pull (fecth/merge). >=20 > Thanks for sharing, > -Fred >=20 > -----Message d'origine----- From: Dasa Paddock > Sent: Tuesday, March 19, 2013 6:57 PM > To: > Subject: Re: [3/3] git commit: Merge branch 'develop' of > https://git-wip-us.apache.org/repos/asf/flex-sdk into develop >=20 > This is the best explanation of when to merge vs. rebase that I've seen: > http://blog.sourcetreeapp.com/2012/08/21/merge-or-rebase/ >=20 > There's also now a public beta of SourceTree for Windows available: > http://blog.sourcetreeapp.com/2013/03/19/introducing-sourcetree-for-windo= ws-a-free-desktop-client-for-git/ >=20 > In regards to these unwanted merges, I've seen GitHub for Windows do this > automatically instead of giving an error when you click it's Sync button = and > your local develop branch has commits that have not been pushed yet but t= he > remote also also has commits that are not yet on the local develop branch= . >=20 > --Dasa >=20 >=20