From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.devel Subject: Re: Multiple checkout copies Date: Tue, 03 Feb 2015 17:50:33 +0100 Organization: Probably a good idea Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1422982262 19686 80.91.229.3 (3 Feb 2015 16:51:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Feb 2015 16:51:02 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 03 17:51:02 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 1YIggm-0007Nr-PF for ged-emacs-devel@m.gmane.org; Tue, 03 Feb 2015 17:51:00 +0100 Original-Received: from localhost ([::1]:60390 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIggm-0004ii-9g for ged-emacs-devel@m.gmane.org; Tue, 03 Feb 2015 11:51:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIggZ-0004hx-0U for emacs-devel@gnu.org; Tue, 03 Feb 2015 11:50:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YIggR-0000im-Kd for emacs-devel@gnu.org; Tue, 03 Feb 2015 11:50:46 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:55461) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIggR-0000hu-Dt for emacs-devel@gnu.org; Tue, 03 Feb 2015 11:50:39 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YIggQ-0007BL-4I for emacs-devel@gnu.org; Tue, 03 Feb 2015 17:50:38 +0100 Original-Received: from rainey.bang.priv.no ([212.110.185.190]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Feb 2015 17:50:38 +0100 Original-Received: from sb by rainey.bang.priv.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Feb 2015 17:50:38 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 26 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: rainey.bang.priv.no Mail-Copies-To: never User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4 (windows-nt) Cancel-Lock: sha1:8HgwETL3UuY5cZCN1QWObJRBVyw= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:182332 Archived-At: >>>>> Richard Stallman : > Using git, is there a way to check out copies of different branches in > parallel (in different directories) from the same clone of the > repository? If you're not concerned with disk usage, the simplest way is something like this (assuming you're placed in the directory above where the current emacs is checked out as "emacs"): cp -a emacs emacs-24 cd emacs-24 git checkout emacs-24 A slightly different version of the above will save disk space by using hard links to files in the original repository: git clone emacs emacs-24 cd emacs-24 git checkout emacs-24 (most of the repository is immutable, and it is the immutable stuff that is hardlinked, so these two repositories will diverge over time, so the space save is just initial) Note: neither of these approaches will let you share stuff between the two clones without going by the remote server (however there are ways to do so, if this is of interest).