Skip to content

exp apply: safeguard against unclean workspaces #6930

@mattlbeck

Description

@mattlbeck

dvc exp apply will clear the workspace of untracked files and unstaged modifications. To prevent users losing work, it would be good to follow git's convention of preventing overwriting of untracked/modified files unless the user gives explicit permission.

  • If dvc exp apply is executed on an unclean workspace, fail with a suggestion to stash work or specify a --force flag
  • dvc exp apply --force acts like the current command does.

Metadata

Metadata

Assignees

Labels

A: experimentsRelated to dvc expbugDid we break something?p1-importantImportant, aka current backlog of things to do

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions