Archive for September, 2019

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 -)

Posted on September 6, 2019 at 7:20 am by sergeyt · Permalink · Leave a comment
In: Git