home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] can i "git checkout" an earlier version of a file *only* into working directory?

  • Subject: Re: [OCLUG-Tech] can i "git checkout" an earlier version of a file *only* into working directory?
  • From: Alex Pilon <alp [ at ] alexpilon [ dot ] ca>
  • Date: Tue, 6 Oct 2015 09:38:18 -0400
On Tue, Oct 06, 2015 at 05:36:06AM -0700, Robert P. J. Day wrote:
> is there an option to check the file out only in the working
> directory?

Not as far as I know, but if you're only doing single files;

    git show v4.0:Makefile > Makefile

Regards,

Alex Pilon