How to sparsely checkout only one single file from a git repository?

Originally, I mentioned in 2012 git archive (see Jared Forsyth‘s answer and Robert Knight‘s answer), since git1.7.9.5 (March 2012), Paul Brannan‘s answer: git archive –format=tar –remote=origin HEAD:path/to/directory — filename | tar -O -xf – But: in 2013, that was no longer possible for remote https://github.com URLs. See the old page “Can I archive a repository?“ … Read more