git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Kenneth P. Turvey" <kt-usenet@squeakydolphin.com>
To: git@vger.kernel.org
Subject: Re: Simple problem
Date: Mon, 28 Apr 2008 18:58:51 +0000 (UTC)	[thread overview]
Message-ID: <fv56pb$ceb$1@ger.gmane.org> (raw)
In-Reply-To: 20080428164945.GA14445@atjola.homenet

On Mon, 28 Apr 2008 18:49:45 +0200, Björn Steinbrink wrote:

[Snip]
> That restores the version from the index, so it will fail if you did
> "git rm file". To get the file from HEAD use "git checkout HEAD --
> file".

Thanks.  I tested this and it works as advertised.  I took a look at the 
man page and I understand what the -- is for too.  

I had actually tried:

git checkout myfile.java

and this didn't work.



-- 
Kenneth P. Turvey <kt-usenet@squeakydolphin.com>

  reply	other threads:[~2008-04-28 19:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-28 16:31 Simple problem Kenneth P. Turvey
2008-04-28 16:35 ` Bill Lear
2008-04-28 16:49   ` Björn Steinbrink
2008-04-28 18:58     ` Kenneth P. Turvey [this message]
2008-04-28 17:47 ` Alex Riesen

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='fv56pb$ceb$1@ger.gmane.org' \
    --to=kt-usenet@squeakydolphin.com \
    --cc=git@vger.kernel.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).