From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.devel Subject: Re: casual contributing with git Date: Sun, 19 May 2019 06:48:25 +0200 Message-ID: <87y333f3s6.fsf@mbork.pl> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="59310"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.1.0; emacs 27.0.50 Cc: Emacs developers To: Jean-Christophe Helary Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 19 06:50:41 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hSDmT-000FBq-Dn for ged-emacs-devel@m.gmane.org; Sun, 19 May 2019 06:50:41 +0200 Original-Received: from localhost ([127.0.0.1]:43852 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSDmN-0005UF-Hf for ged-emacs-devel@m.gmane.org; Sun, 19 May 2019 00:50:35 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSDln-0005Tz-AN for emacs-devel@gnu.org; Sun, 19 May 2019 00:50:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hSDlm-0000N1-B4 for emacs-devel@gnu.org; Sun, 19 May 2019 00:49:59 -0400 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:40780) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSDlm-0000Mu-46 for emacs-devel@gnu.org; Sun, 19 May 2019 00:49:58 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id EDCCEE659D; Sun, 19 May 2019 06:49:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bQh8wKPOLe2q; Sun, 19 May 2019 06:49:53 +0200 (CEST) Original-Received: from localhost (apn-5-60-1-116.dynamic.gprs.plus.pl [5.60.1.116]) by mail.mojserwer.eu (Postfix) with ESMTPSA id F1F18E658D; Sun, 19 May 2019 06:49:52 +0200 (CEST) In-reply-to: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.110.48.8 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:236742 Archived-At: On 2019-05-19, at 03:41, Jean-Christophe Helary wrote: >> On Jul 5, 2017, at 2:51, Stephen Leake wrote: >> >> Workspaces are cheap; I keep a full checkout of master, and one of each >> branch I'm working on, at all times. > > Is that the recommended way ? Of course not! (At least, not as far as Git goes in general - but I don't think there is some Emacs idiosyncrasy here.) Anyway, if you *must* (or you think you must) create separate "workspaces" ("worktrees" in official Git parlance) for various branches, you might want to check out the `git worktree' command. But most probably you don't need such a feature. Also, if you tend to switch between WiP on various branches (which is not something I would recommend, but may be necessary), `git stash' is definitely your friend. Best, -- Marcin Borkowski http://mbork.pl