dvc
dvc copied to clipboard
get: support git remotes
It would be nice to support dvc get origin models/model.h5. It seems unnecessary to have to type out the full URL for a known Git remote.
Edit: The context for this request is in https://github.com/iterative/dvc.org/pull/3593.
How would you differentiate the git remote name from a local path?
From https://dvc.org/doc/command-reference/get#description:
url can also be a local file system path (including the current project e.g. .).
Hm, good point. A couple possible options:
- Use
-goption and make URL optional in that case. - Introduce some new syntax like
git:origin.
-g/--git-remote <git_remote> to keep consistent with other commands (dvc exp remove) .