From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.devel Subject: Re: Git question. Is there a way of duplicating a git repository? Date: Sat, 14 Nov 2015 16:02:27 -0500 Message-ID: <5647A163.5020302@cornell.edu> References: <20151114112027.GA2567@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1447656442 3128 80.91.229.3 (16 Nov 2015 06:47:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Nov 2015 06:47:22 +0000 (UTC) To: Alan Mackenzie , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 16 07:47:16 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 1ZyDZL-0004Zi-Da for ged-emacs-devel@m.gmane.org; Mon, 16 Nov 2015 07:47:15 +0100 Original-Received: from localhost ([::1]:45860 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyDZK-00079b-Ow for ged-emacs-devel@m.gmane.org; Mon, 16 Nov 2015 01:47:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56559) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zxhxr-0007Pb-Be for emacs-devel@gnu.org; Sat, 14 Nov 2015 16:02:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zxhxo-0002ce-3y for emacs-devel@gnu.org; Sat, 14 Nov 2015 16:02:27 -0500 Original-Received: from limerock04.mail.cornell.edu ([128.84.13.244]:51770) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zxhxn-0002cW-WB for emacs-devel@gnu.org; Sat, 14 Nov 2015 16:02:24 -0500 X-CornellRouted: This message has been Routed already. Original-Received: from authusersmtp.mail.cornell.edu (granite4.serverfarm.cornell.edu [10.16.197.9]) by limerock04.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id tAEL2HZx016815; Sat, 14 Nov 2015 16:02:18 -0500 Original-Received: from [192.168.1.6] (cpe-67-249-176-138.twcny.res.rr.com [67.249.176.138]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id tAEL2GJk010476 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sat, 14 Nov 2015 16:02:17 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; 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: 128.84.13.244 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:194501 Archived-At: On 11/14/2015 6: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. You can fix that by issuing the following command in the new repo: git remote set-url origin @git.sv.gnu.org:/srv/git/emacs.git master After doing that, you'll to do 'git pull' in order to bring in the remote branches, and then you can do 'git checkout emacs-25'. Ken