# Check if files are in same versions in local and remote without doing dvc pull

**URL:** <https://discuss.dvc.org/t/check-if-files-are-in-same-versions-in-local-and-remote-without-doing-dvc-pull/1045>\
**Category:** Questions\
**Created:** [February 8, 2022, 10:52am UTC](https://discuss.dvc.org/t/check-if-files-are-in-same-versions-in-local-and-remote-without-doing-dvc-pull/1045 "2022-02-08T10:52:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![delpha](https://avatars.discourse-cdn.com/v4/letter/d/b5a626/32.png) [@delpha](https://discuss.dvc.org/u/delpha)\
**Post date:** [February 8, 2022, 10:52am UTC](https://discuss.dvc.org/t/check-if-files-are-in-same-versions-in-local-and-remote-without-doing-dvc-pull/1045/1 "2022-02-08T10:52:19Z")

</div>

Hi,

I would like to kwow if there is a way to know if files are not up to date on my github repo (with the .dvc files) compare to dvc storage without doing a dvc pull and dvc repro. In other words, how can I check if nobody forget to do a dvc push before git push.

I can’t use dvc pull to check that because the check is doing in a github action and files are too large to be pull on it. And I don’t want to depends on some hooks because it implies to be sure that everybody install it.

I have the intuition that it coulb be possible to check the md5 stock in .dvc files are the same that in remote without pulling them but I don’t find the solution.

Thank you in advance for your help 🙂

---

<div class="post-metadata">

**Author:** ![dtrifiro](https://avatars.discourse-cdn.com/v4/letter/d/278dde/32.png) [@dtrifiro](https://discuss.dvc.org/u/dtrifiro)\
**Post date:** [February 8, 2022, 11:17am UTC](https://discuss.dvc.org/t/check-if-files-are-in-same-versions-in-local-and-remote-without-doing-dvc-pull/1045/3 "2022-02-08T11:17:08Z")

</div>

Hi,

you could set up hooks so that some checks are run before commits/push: [https://dvc.org/doc/command-reference/install](https://dvc.org/doc/command-reference/install).

There’s no way of checking the status of the files without actually having the files locally, but once the files are copied locally, you can run `dvc status --cloud` to check the status of the local repository/files against the remote. The `--quiet/q` flags make it quiet and exit with error if the local cache is not up-to-date with the remote.

Hope this helps!
