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 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.htmlReceived on Fri Sep 30 03:53:56 2005
This archive was generated by hypermail 2.1.8 : 2005-09-30 03:53:58 EST