Is it possible to pull out a specific version of a file from a Git repository to an external folder location?
I have a few excel (binary) files in y Git repo. I want to pull out specific version of that file to an external folder without having to do a git checkout
, so that my current working directory is not disturbed.
System information:
Windows 8, 64 bit.
msysgit 1.9.4
There is an useful tool on git. It can be use by show
command.
See all of the options of show by giving command -
git show
If you want to see the particular version of a file just use the following format -
git show commit:filename
Now export to a file by --
git show commit:filename > newfilename