From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie 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 13:16:07 +0000 Message-ID: <20150418131607.GD4182@acm.fritz.box> References: <20150418103301.GB4182@acm.fritz.box> <86sibx7hos.fsf@dod.no> <83twwd7gl9.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1429362988 8883 80.91.229.3 (18 Apr 2015 13:16:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Apr 2015 13:16:28 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 18 15:16:20 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 1YjSbb-0000DG-D2 for ged-emacs-devel@m.gmane.org; Sat, 18 Apr 2015 15:16:19 +0200 Original-Received: from localhost ([::1]:45691 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjSba-0003Ah-QJ for ged-emacs-devel@m.gmane.org; Sat, 18 Apr 2015 09:16:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjSbW-0003AK-9u for emacs-devel@gnu.org; Sat, 18 Apr 2015 09:16:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YjSbO-0004jk-Jk for emacs-devel@gnu.org; Sat, 18 Apr 2015 09:16:14 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:20520 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjSbO-0004ja-AN for emacs-devel@gnu.org; Sat, 18 Apr 2015 09:16:06 -0400 Original-Received: (qmail 32700 invoked by uid 3782); 18 Apr 2015 13:16:05 -0000 Original-Received: from acm.muc.de (p548A47F8.dip0.t-ipconnect.de [84.138.71.248]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 18 Apr 2015 15:16:04 +0200 Original-Received: (qmail 32059 invoked by uid 1000); 18 Apr 2015 13:16:07 -0000 Content-Disposition: inline In-Reply-To: <83twwd7gl9.fsf@gnu.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-Received-From: 193.149.48.1 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:185576 Archived-At: Hello, Eli. On Sat, Apr 18, 2015 at 03:42:42PM +0300, Eli Zaretskii wrote: > > From: Steinar Bang > > Date: Sat, 18 Apr 2015 14:18:59 +0200 > > >>>>> Alan Mackenzie : > > > Hello, Emacs. > > > A simple question (I hope): How do I get a specific SW revision into my > > > working directory. I want to do something like this: > > > git 7e09ef09a479731d01b1ca46e94ddadd73ac98e3 > > > git checkout doesn't seem to be the thing. > > "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. -- Alan Mackenzie (Nuremberg, Germany).