From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: Git question. Is there a way of duplicating a git repository? Date: Sat, 14 Nov 2015 23:58:24 -0800 Organization: UCLA Computer Science Department Message-ID: <56483B20.7010104@cs.ucla.edu> References: <20151114112027.GA2567@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1447657535 18893 80.91.229.3 (16 Nov 2015 07:05:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Nov 2015 07:05:35 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 16 08:05:27 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 1ZyDqw-0000ns-KY for ged-emacs-devel@m.gmane.org; Mon, 16 Nov 2015 08:05:26 +0100 Original-Received: from localhost ([::1]:46325 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyDqw-0006qv-8U for ged-emacs-devel@m.gmane.org; Mon, 16 Nov 2015 02:05:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48583) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxsCk-0007Uo-LY for emacs-devel@gnu.org; Sun, 15 Nov 2015 02:58:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZxsCh-00061U-GD for emacs-devel@gnu.org; Sun, 15 Nov 2015 02:58:30 -0500 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:50583) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxsCh-00061P-AW for emacs-devel@gnu.org; Sun, 15 Nov 2015 02:58:27 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 8DA121605AF for ; Sat, 14 Nov 2015 23:58:25 -0800 (PST) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 1IaHB0Sue5QU for ; Sat, 14 Nov 2015 23:58:24 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id B281E160707 for ; Sat, 14 Nov 2015 23:58:24 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 6neRvskiNQOH for ; Sat, 14 Nov 2015 23:58:24 -0800 (PST) Original-Received: from [192.168.1.9] (pool-100-32-155-148.lsanca.fios.verizon.net [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 955BA1605AF for ; Sat, 14 Nov 2015 23:58:24 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <20151114112027.GA2567@acm.fritz.box> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 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:194521 Archived-At: Alan Mackenzie wrote: > is there any convenient way of duplicating a repo (using hard links, > and preserving config info)? Not sure what you mean by "preserving config info", but if your current repository is in a directory named 'master', you could do something like this: git clone master emacs-25 cd emacs-25 git remote add savannah YOURNAME@git.sv.gnu.org:/srv/git/emacs.git git fetch savannah git branch --track emacs-25 savannah/emacs-25 git checkout emacs-25