Experiments default git remote #6427
Replies: 2 comments 1 reply
-
I would still prefer that we just require the user to be explicit when specifying where to push exp refs. We can add a way for users to explicitly set a default git remote, but the fallback behavior for DVC should be to error out if no git remote has been explicitly specified by the user (either through the existing behavior or this new config option).
Creating a bare git repo on a DVC remote would only work for local and SSH remotes. I think it would also be non-intuitive, since your exp git refs would be pushed to a different git remote than everything else in your git repo. The whole point of the way that the exp feature works is so that they can be treated exactly the same as the other commits and refs in your git repo. This would be like if github stored your actual git server repo in one location ( |
Beta Was this translation helpful? Give feedback.
-
Yes the logic of a default remote in git is much more granular than ours. But what would they do if? a new branch ( like what in dvc exp ) was pushed without specifying a remote? |
Beta Was this translation helpful? Give feedback.
-
See the discussion in #6332 (comment) for background.
Some benefits to having a default git remote in experiments:
The downside to a default git remote is that it could result in unexpected behavior. In particular, since experiments do not have upstream tracking branches, any branch-specific tracking branches set in Git will be ignored. See #6332 (comment). More generally, if users need to push to a non-default branch but aren't aware of the default behavior in dvc, they could accidentally push to an unwanted remote if dvc doesn't require it to be set explicitly.
There are a few options for a default git remote in experiments:
@karajan1001 @pmrowla
Beta Was this translation helpful? Give feedback.
All reactions