Checkout a single file from Git repo
This one going to be quick and putting here just for future reference.
Task
Checkout a single file from Git without cloning whole repo
Solution
git archive --prefix=config/ --remote=git@git.example.com:/app.git HEAD:app/config/ config.yaml | (cd /usr/local/app && tar xf -)