From: Aghiles <aghilesk@gmail.com>
To: Jonathan Nieder <jrnieder@gmail.com>
Cc: git list <git@vger.kernel.org>,
Michael J Gruber <git@drmicha.warpmail.net>
Subject: Re: git pull with "no common commits" : danger?
Date: Thu, 8 Apr 2010 15:55:23 -0400 [thread overview]
Message-ID: <t2j3abd05a91004081255h58d2aca3leeb41adf53dc6a4f@mail.gmail.com> (raw)
In-Reply-To: <20100408054349.GA6067@progeny.tock>
Jonathan Nieder <jrnieder@gmail.com> writes:
>
> ...
>
> On the other hand, ‘git pull’ is a little different. The fetch has
> very little cost because it’s interruptible, but the merge could
> result in two unrelated pieces of history being merged, requiring
> the user to use ‘git reset --keep HEAD^’ to get back to the
> previous state. A more likely outcome is a merge conflict, requiring
> ‘git reset --merge’ to recover.
>
> Can we make this less painful? Is it worth adding yet another option
> to ‘git pull’ to avoid this pain? I don’t know.
That is exactly the case I was talking about. I never lost any data
because of this and considering what Junio Hamano is saying I
probably should just continue to do the 'git reset'.
-- aghiles
next prev parent reply other threads:[~2010-04-08 19:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-08 1:56 git pull with "no common commits" : danger? Aghiles
2010-04-08 2:08 ` Michael J Gruber
2010-04-08 2:43 ` Aghiles
2010-04-08 5:44 ` Jonathan Nieder
2010-04-08 19:55 ` Aghiles [this message]
2010-04-08 6:20 ` Junio C Hamano
2010-04-08 19:46 ` Aghiles
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=t2j3abd05a91004081255h58d2aca3leeb41adf53dc6a4f@mail.gmail.com \
--to=aghilesk@gmail.com \
--cc=git@drmicha.warpmail.net \
--cc=git@vger.kernel.org \
--cc=jrnieder@gmail.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).