Skip to main content

How to See Which DVC-Tracked Files Changed with dvc status

· 8 min read
Jagdish Kumawat
Founder @ Dewiride

Change a file that DVC tracks, and git status says nothing: Git only sees the small .dvc file, and that hasn't changed. dvc status compares the data itself with the hash in its .dvc file. This guide changes a tracked file, reads what dvc status and dvc data status report, then deletes the file and gets it back with dvc checkout, using DVC 3.67.1.

Syntax​

Syntax
dvc status [<targets>]
PartWhat it means
dvc statusCompares every DVC-tracked file in the project folder with the hash saved in its .dvc file
<targets>Optional: only these files or .dvc files. Without them, DVC checks the whole project

The dvc status reference says that when nothing changed it prints "Data and pipelines are up to date", and otherwise lists "the changes in dependencies and/or outputs". A file tracked with dvc add is an output of its .dvc file, which is why the report says outs.

The Example​

fruit-prices is a Git repository where dvc init has run, and data/prices.csv, a short fruit price list, is tracked with dvc add and committed.

Prerequisites​

  • DVC, in a Git repository where dvc init has run. Run dvc --version to check; this guide uses DVC 3.67.1.

Step 1: Check a Project with No Changes​

Terminal
dvc status
Output
Data and pipelines are up to date.

The terminal after dvc status in a project with no changes: Data and pipelines are up to date.

Every tracked file matches its .dvc file.

Step 2: Change the File​

Add a line to the price list, then ask DVC and Git what changed:

Terminal
echo "2026-11-03,banana,0.25" >> data/prices.csv
Terminal
dvc status
Output
data/prices.csv.dvc:
changed outs:
modified: data/prices.csv
Terminal
git status --short

The terminal after a line is added to data/prices.csv: dvc status reports data/prices.csv as modified under changed outs, and git status --short prints nothing.

git status --short prints nothing at all. Git doesn't look at data/prices.csv, because dvc add listed it in data/.gitignore, and prices.csv.dvc hasn't changed. dvc status reads the report from the top down:

LineWhat it means
data/prices.csv.dvc:The .dvc file with a change
changed outs:What changed is one of its outputs, the data it tracks
modified: data/prices.csvThe file is still there, but its hash no longer matches the .dvc file

The reference defines modified as "An output or dependency is found in the workspace, but the corresponding file hash in the dvc.lock or .dvc file is not up to date." The two PowerShell lines in this guide were checked in PowerShell 7.6 on macOS, where Add-Content gave a file identical to the one echo made.

Step 3: Get Hints with dvc data status​

dvc data status reports the same change in the style of git status, with what you can do next:

Terminal
dvc data status
Output
DVC uncommitted changes:
(use "dvc commit <file>..." to track changes)
(use "dvc checkout <file>..." to discard changes)
modified: data/prices.csv

The terminal after dvc data status: DVC uncommitted changes, two hints, and modified: data/prices.csv.

The dvc data status reference says it "can be used as a companion to git status". The first hint keeps the change and the second throws it away. Keeping a change makes a new version of the data, which How to Save a New Version of a DVC-Tracked File does with dvc add. A modified file isn't thrown away as easily as the hint suggests: dvc checkout refuses to replace a file whose changes aren't saved, and Fixed: "Can't remove the following unsaved files without confirmation" in dvc checkout shows what to do.

Step 4: Delete the File​

Terminal
rm data/prices.csv
dvc status
Output
data/prices.csv.dvc:
changed outs:
deleted: data/prices.csv

The terminal after rm data/prices.csv and dvc status, which reports data/prices.csv as deleted under changed outs.

The reference defines deleted as "The output or dependency is referenced in a dvc.lock or .dvc file, but does not exist in the workspace."

Step 5: Get the File Back with dvc checkout​

The file is gone from the project folder, but the version that prices.csv.dvc points to is still in DVC's cache. dvc checkout puts it back:

Terminal
dvc checkout
Output
Building workspace index |1.00 [00:00, 377entry/s]
Comparing indexes |3.00 [00:00, 3.34kentry/s]
Applying changes |1.00 [00:00, 898file/s]
A data/prices.csv
Terminal
dvc status
Output
Data and pipelines are up to date.
Terminal
cat data/prices.csv
Output
date,fruit,price
2026-11-01,apple,0.40
2026-11-02,pear,0.55

The terminal after dvc checkout, which adds data/prices.csv back, dvc status, which says Data and pipelines are up to date, and cat data/prices.csv, which shows the apple and pear prices without the banana line.

A data/prices.csv means the file was added back. It's the committed version, with two prices: the banana line from Step 2 was never saved with dvc add, so it was lost with the file. The dvc checkout reference says: "Missing data files or directories are restored from the cache." The commands are the same in PowerShell.

Check One File​

Give dvc status a file or a .dvc file to check only that one:

Terminal
dvc status data/prices.csv.dvc
Output
Data and pipelines are up to date.

Common Mistakes​

MistakeWhat happensDo this instead
Checking changes with git status onlyChanges to DVC-tracked data don't showRun dvc status too
Deleting a changed file before dvc adddvc checkout brings back only the last saved versiondvc add the file first if you want to keep the change

Troubleshooting​

SymptomLikely causeFix
modified: under changed outs:The file changed since the last dvc adddvc add to keep it, or dvc checkout --force <file> to throw the change away
deleted: under changed outs:The file was deleted or moveddvc checkout restores it from the cache
git status shows nothing after a changeGit ignores DVC-tracked filesUse dvc status

FAQ​

What's the difference between dvc status and dvc data status?​

dvc data status shows the state "with respect to the last Git commit (HEAD)", grouped like git status, with hints. dvc status compares each .dvc file with its data, and also checks pipelines, which later steps of a DVC project use.

Can dvc status compare with the remote?​

Yes: dvc status --cloud compares the cache with the default remote and lists what dvc push would upload. The push guide shows it.

Conclusion​

After a change to data/prices.csv, git status showed nothing, while dvc status reported modified under changed outs of data/prices.csv.dvc, and dvc data status added hints. After the file was deleted, dvc status reported deleted, and dvc checkout restored the committed version from the cache.

Additional Resources​