all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
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	[thread overview]
Message-ID: <20150418131607.GD4182@acm.fritz.box> (raw)
In-Reply-To: <83twwd7gl9.fsf@gnu.org>

Hello, Eli.

On Sat, Apr 18, 2015 at 03:42:42PM +0300, Eli Zaretskii wrote:
> > From: Steinar Bang <sb@dod.no>
> > Date: Sat, 18 Apr 2015 14:18:59 +0200

> > >>>>> Alan Mackenzie <acm@muc.de>:

> > > 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 <command> 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 <revision number>", 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).



  reply	other threads:[~2015-04-18 13:16 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-18 10:33 git question: how do I get a specific git version into my working directory? Alan Mackenzie
2015-04-18 10:42 ` Andreas Schwab
2015-04-18 12:18 ` Steinar Bang
2015-04-18 12:42   ` Eli Zaretskii
2015-04-18 13:16     ` Alan Mackenzie [this message]
2015-04-18 13:20       ` Dmitry Gutov
2015-04-18 13:37       ` Eli Zaretskii
2015-04-18 14:07         ` Harald Hanche-Olsen
2015-04-18 14:43           ` Eli Zaretskii
2015-04-18 17:09             ` Stefan Monnier
2015-04-18 17:37               ` Eli Zaretskii
2015-04-18 17:44                 ` Harald Hanche-Olsen
2015-04-18 12:48   ` Eric Abrahamsen
2015-04-18 13:09   ` Alan Mackenzie
2015-04-18 13:18     ` Dmitry Gutov
2015-04-18 13:57     ` Steinar Bang
2015-04-18 14:03     ` Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150418131607.GD4182@acm.fritz.box \
    --to=acm@muc.de \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.