Re: Simple problem
- From
- Kenneth P. Turvey <kt-usenet@squeakydolphin.com>
- Date
- Apr 28, 2008, 18:58 UTC
- Message-ID
- <fv56pb$ceb$1@ger.gmane.org>
- 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>