From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: git question: how do I get a specific git version into my working directory? Date: Sat, 18 Apr 2015 16:37:17 +0300 Message-ID: <83sibx7e2a.fsf@gnu.org> References: <20150418103301.GB4182@acm.fritz.box> <86sibx7hos.fsf@dod.no> <83twwd7gl9.fsf@gnu.org> <20150418131607.GD4182@acm.fritz.box> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1429364283 27212 80.91.229.3 (18 Apr 2015 13:38:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Apr 2015 13:38:03 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 18 15:37:50 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 1YjSwP-0006hv-RO for ged-emacs-devel@m.gmane.org; Sat, 18 Apr 2015 15:37:49 +0200 Original-Received: from localhost ([::1]:45741 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjSwP-0001Yt-52 for ged-emacs-devel@m.gmane.org; Sat, 18 Apr 2015 09:37:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42742) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjSwB-0001Yl-G7 for emacs-devel@gnu.org; Sat, 18 Apr 2015 09:37:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YjSw7-0003Ce-GP for emacs-devel@gnu.org; Sat, 18 Apr 2015 09:37:35 -0400 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:41345) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjSw7-0003CN-8A for emacs-devel@gnu.org; Sat, 18 Apr 2015 09:37:31 -0400 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NN000C0086PD500@mtaout29.012.net.il> for emacs-devel@gnu.org; Sat, 18 Apr 2015 16:35:42 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NN0006NC8FIW840@mtaout29.012.net.il>; Sat, 18 Apr 2015 16:35:42 +0300 (IDT) In-reply-to: <20150418131607.GD4182@acm.fritz.box> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.185 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:185583 Archived-At: > Date: Sat, 18 Apr 2015 13:16:07 +0000 > From: Alan Mackenzie > Cc: emacs-devel@gnu.org > > > > "git checkout 7e09ef09a479731d01b1ca46e94ddadd73ac98e3" should work. > > > It also creates a "detached HEAD", so Alan should IMO be aware of > > that, and return to the upstream head ASAP (or, better, do all of this > > in a separate branch to begin with). > > I'm aware of it, now! Given that I'm not intending to do any VCS > operation on this, other than "git checkout ", I should > be all right, surely? I'm expecting (?hoping) that on switching back to > the HEAD revision, the detached head (?all detached heads) will vanish. If I were you, I'd do all this in a separate branch, just to be sure my 'master' branch had no chance whatsoever to be affected. Then you could simply delete that branch when no longer needed.