dvc icon indicating copy to clipboard operation
dvc copied to clipboard

get: support git remotes

Open dberenbaum opened this issue 3 years ago • 3 comments

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.

dberenbaum avatar May 26 '22 12:05 dberenbaum

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

daavoo avatar May 26 '22 13:05 daavoo

Hm, good point. A couple possible options:

  • Use -g option and make URL optional in that case.
  • Introduce some new syntax like git:origin.

dberenbaum avatar May 26 '22 14:05 dberenbaum

-g/--git-remote <git_remote> to keep consistent with other commands (dvc exp remove) .

karajan1001 avatar May 27 '22 07:05 karajan1001