From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Sixt Subject: Re: How to fork a file (git cp ?) Date: Wed, 04 May 2011 20:22:13 +0200 Message-ID: <4DC19955.7040503@kdbg.org> References: <4DC1934D.6070608@aldan.algebra.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: git@vger.kernel.org To: "Mikhail T." X-From: git-owner@vger.kernel.org Wed May 04 20:22:30 2011 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QHgiT-00066A-8Y for gcvg-git-2@lo.gmane.org; Wed, 04 May 2011 20:22:29 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755153Ab1EDSWR (ORCPT ); Wed, 4 May 2011 14:22:17 -0400 Received: from bsmtp4.bon.at ([195.3.86.186]:27726 "EHLO bsmtp.bon.at" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755421Ab1EDSWO (ORCPT ); Wed, 4 May 2011 14:22:14 -0400 Received: from dx.sixt.local (unknown [93.83.142.38]) by bsmtp.bon.at (Postfix) with ESMTP id 8D3F313004E; Wed, 4 May 2011 20:22:13 +0200 (CEST) Received: from [IPv6:::1] (localhost [IPv6:::1]) by dx.sixt.local (Postfix) with ESMTP id 5FB7719F389; Wed, 4 May 2011 20:22:13 +0200 (CEST) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.14) Gecko/20110221 SUSE/3.1.8 Thunderbird/3.1.8 In-Reply-To: <4DC1934D.6070608@aldan.algebra.com> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: (Sorry for the botched previous post - fat fingers) Am 04.05.2011 19:56, schrieb Mikhail T.: > I need to add a new thing to our project. The thing will be similar to > what already exists. I'd like to "derive" the new files from the > existing ones -- without altering them and by preserving the > change-history. You cannot. Git does not have such a thing as "copy-with-preserved-history". You just cp the file and git add it. But you will not be able to follow a history of the file. -- Hannes