Page MenuHomePhabricator

How can I download a single file from a git repository via phabricator web interface?
OpenPublic

Asked by silverskysoft on Sep 29 2016, 10:19 PM.

Details

Generally, I'd like to download config files / other scripts that are version tracked in git.
ideally if there is a way to directly reference head it would be great.
maybe some thing like":
https://secure.phabricator.com/diffusion/P/raw/<some_access_key>/{commitID|HEAD}/README.md

should start the file download.

We can simply use this automated deployment and docker so we can simple get the latest file without downloading the entire repo. The repo can contain various other scripts that are not necessary for this VM instance. For instance I don't need to download entire mysql config scripts when setting up NGINX proxy scripts.

Is there such a feature?

Answers

This answer has been hidden.

avivey
Updated 2,998 Days Ago

If it's a simple text file, you can use something like
curl -L https://secure.phabricator.com/diffusion/P/browse/master/README.md?view=raw, although that doesn't work for binary files.

New Answer