From: Francis Moreau <francis.moro@gmail.com>
To: git@vger.kernel.org
Subject: Question about "git pull --rebase"
Date: Sat, 14 Nov 2009 21:39:24 +0100 [thread overview]
Message-ID: <38b2ab8a0911141239w2bab7277o66350bc742d985dd@mail.gmail.com> (raw)
hello,
Let's say I'm on a branch called 'foo'.
I tried to rebase this branch by using 'git pull --rebase'.
I first tried the following command:
$ git pull --rebase origin master:foo
remote: Counting objects: 5, done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (3/3), done.
From /dev/shm/git/A
! [rejected] master -> foo (non fast forward)
which failed.
Then I tried:
$ git pull --rebase origin master
which worked.
Reading the man git-pull I would assume the 2 commands are equivalent
but obviously they're not.
So the question is: why ?
Thanks
--
Francis
next reply other threads:[~2009-11-14 20:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-14 20:39 Francis Moreau [this message]
2009-11-14 23:16 ` Question about "git pull --rebase" Nanako Shiraishi
2009-11-15 14:31 ` Francis Moreau
2009-11-14 23:29 ` Johan 't Hart
2009-11-15 14:34 ` Francis Moreau
2009-11-15 19:47 ` Johan 't Hart
2009-11-15 20:18 ` Junio C Hamano
2009-11-15 20:32 ` Johan 't Hart
2009-11-16 12:00 ` Francis Moreau
2009-11-16 12:17 ` Francis Moreau
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=38b2ab8a0911141239w2bab7277o66350bc742d985dd@mail.gmail.com \
--to=francis.moro@gmail.com \
--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).