Can we extract a specific file to a local machine based on the commit id from GIT remote repository without cloning the entire repository.
Found a few answers to this question, but not clear with how to continue with this and if it would actually work the way I am expecting
Using Fetch
git fetch origin 96de5297df870:refs/remotes/origin/foo-commit
With repository cloned to a local machine below is working, but i am looking for a solution without cloning
git show 0311b27:./RN/SIE_R15.3_10646.xls > /d/ReleaseFolder/GitTest/SIE_R15.3_10646.xls
I am using git version 1.9.5.msysgit.1
I have tried this option as well
archive --remote=git://git.foo.com/project.git HEAD:path/to/directory filename | tar -x
but since i am using http protocol, I am getting this error
fatal: Operation not supported by protocol.
Unexpected end of command stream