From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Schindelin Subject: Re: making a branch with just one file and keeping its whole history Date: Mon, 21 Jul 2008 19:08:57 +0100 (BST) Message-ID: References: <20080721061804.223f7801@mail.tin.it> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: git@vger.kernel.org To: Eric Raible X-From: git-owner@vger.kernel.org Mon Jul 21 20:10:11 2008 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1KKzpe-0000wt-VV for gcvg-git-2@gmane.org; Mon, 21 Jul 2008 20:09:59 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751283AbYGUSI6 (ORCPT ); Mon, 21 Jul 2008 14:08:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751061AbYGUSI6 (ORCPT ); Mon, 21 Jul 2008 14:08:58 -0400 Received: from mail.gmx.net ([213.165.64.20]:53703 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1750815AbYGUSI5 (ORCPT ); Mon, 21 Jul 2008 14:08:57 -0400 Received: (qmail invoked by alias); 21 Jul 2008 18:08:56 -0000 Received: from grape.st-and.ac.uk (EHLO grape.st-and.ac.uk) [138.251.155.28] by mail.gmx.net (mp066) with SMTP; 21 Jul 2008 20:08:56 +0200 X-Authenticated: #1490710 X-Provags-ID: V01U2FsdGVkX18KUFFn99kKYIzoDiQ+/s8SqC+X0N/CduLsPqsdqC dF/m++Gy7+ma/v X-X-Sender: gene099@racer In-Reply-To: User-Agent: Alpine 1.00 (DEB 882 2007-12-20) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.72 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Hi, On Mon, 21 Jul 2008, Eric Raible wrote: > tin.it> writes: > > > I have a working local repository and I'd like to make a branch with > > just one file (let's say path2/filename2) and to keep its whole > > history. > > http://www.gitcasts.com/posts/empty-branches Beware! This is one of the sites that triggered my mail about considering teaching plumbing to new users harmful. In other words, I think that these "git casts" are not really the best way to teach Git to new users, but rather confusing. Which is a pity, because they are nicely done otherwise. Ciao, Dscho