From: Tony Luck <tony.luck@gmail.com>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: Pull from one branch to another?
Date: Thu, 29 Sep 2005 10:52:10 -0700 [thread overview]
Message-ID: <12c511ca0509291052108fa0a7@mail.gmail.com> (raw)
In-Reply-To: <433B84BD.8030003@pobox.com>
On 9/28/05, Jeff Garzik <jgarzik@pobox.com> wrote:
> $ git checkout -f sky2
...
> $ git checkout -f upstream
...
> $ git checkout -f ALL
Those "-f" arguments to git checkout shouldn't be needed, and may
eventually cause a problem. The "-f" option doesn't quite work as
"forcibly" as you might think it does because it ignores the index, and
so doesn't do what you[1] expect with files that exist in the previously
checked out tree, and not in the new tree ... it won't delete them, so
there's a small risk that with the wrong git operation you may
accidentally add them to the new branch.
In the sequence you described a simple "git checkout" should do the
right thing ... and will be faster too.
-Tony
[1] well what *I* expected, and was part of a snafu I made earlier
prev parent reply other threads:[~2005-09-29 17:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-29 6:07 Pull from one branch to another? Jeff Garzik
2005-09-29 6:35 ` Junio C Hamano
2005-09-29 6:54 ` Use of the -f flag on checkout Alan Chandler
2005-09-29 7:09 ` Matthias Urlichs
2005-09-29 9:02 ` Junio C Hamano
2005-09-29 7:06 ` Pull from one branch to another? Junio C Hamano
2005-09-29 17:52 ` Tony Luck [this message]
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=12c511ca0509291052108fa0a7@mail.gmail.com \
--to=tony.luck@gmail.com \
--cc=git@vger.kernel.org \
--cc=jgarzik@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.