From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Liang Wang Newsgroups: gmane.emacs.devel Subject: Re: Git question. Is there a way of duplicating a git repository? Date: Sat, 14 Nov 2015 09:20:23 -0800 Message-ID: References: <20151114112027.GA2567@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1447577853 5616 80.91.229.3 (15 Nov 2015 08:57:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Nov 2015 08:57:33 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 15 09:57:33 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zxt7s-0002WF-6y for ged-emacs-devel@m.gmane.org; Sun, 15 Nov 2015 09:57:32 +0100 Original-Received: from localhost ([::1]:41140 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zxt7r-0007Ej-9i for ged-emacs-devel@m.gmane.org; Sun, 15 Nov 2015 03:57:31 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35776) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxeUz-0004wB-0x for emacs-devel@gnu.org; Sat, 14 Nov 2015 12:20:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZxeUy-0007gg-1t for emacs-devel@gnu.org; Sat, 14 Nov 2015 12:20:25 -0500 Original-Received: from mail-yk0-x22a.google.com ([2607:f8b0:4002:c07::22a]:33044) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxeUx-0007gN-Tw for emacs-devel@gnu.org; Sat, 14 Nov 2015 12:20:23 -0500 Original-Received: by ykdv3 with SMTP id v3so188985374ykd.0 for ; Sat, 14 Nov 2015 09:20:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=qXszzMieO0GDKnpV5nGBeTmZA6WpFCi4ezUlLGln35U=; b=r2OuI7NM2nowDOFLanBtgPlaeM6uLvF7/DzskyAMNx6tZ1Hwl0oTKsHCMfC4nEOeT9 u2QclEngA6FfYDZesvYsF1EsVLf3pJeyTPV9DiKuDvGHTO4sMrhkvWZHI7IVwmtiFMwj kgSi/mf0TQ8Ma8ehM2oyW5ubpA9QCahlMqC4QZ/b5gfmo3i6Eu5/39xR30Lzep7925vf ZkXRWzGZsNbE5oQzaf5496mLIx/vVco01oslI8TWYKFOMkfqBRBmDB+037njmBcZ77H3 tadcFfIFQxFTeh12yoZzc+V1OE5I3z/PmZygXzaX/bRonssvOKibfg8YCO9cntBpRqgf 1Pew== X-Received: by 10.129.132.86 with SMTP id u83mr27056127ywf.111.1447521623312; Sat, 14 Nov 2015 09:20:23 -0800 (PST) Original-Received: by 10.37.207.82 with HTTP; Sat, 14 Nov 2015 09:20:23 -0800 (PST) In-Reply-To: <20151114112027.GA2567@acm.fritz.box> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4002:c07::22a X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:194479 Archived-At: On Sat, Nov 14, 2015 at 3:20 AM, Alan Mackenzie wrote: > > Hello, Emacs. > > Now that we've cut the emacs-25 release branch, I'd like to have a > distinct repository for this. > > I could simply download another copy from savannah, but this would > (presumably) be a distinct copy, rather than hard linking the repository > files. This would cost me disk (and backup) space. > > Or I could clone my master repository to make emacs-25. But this would > make the new repo firmly subordinate to the master repo, rather than > directly with savannah. > > So, is there any convenient way of duplicating a repo (using hard links, > and preserving config info)? https://github.com/git/git/blob/master/contrib/workdir/git-new-workdir might help. > > -- > Alan Mackenzie (Nuremberg, Germany). > Thanks, Liang.