I have a git-tracked folder, and dvc-tracked data folder within that.
dvc has been installed, so that git actions trigger the dvc hooks.
I created a branch, did some work, created two folders with files within data. I used dvc add on the data folder. Checked all that in and pushed.
Did a git switch to main.
Did a git merge branch.
The git merge was fine, no conflicts.
The data folder does not contain the files from the branch, but contains the two folders.
Looking at the contents of data.dvc, there are two more files shown in nfiles, rather than the 240 files and 2 folders.
What am I missing?
Thanks
Hereβs a demo transcript. Iβm only listing one of the 682k+ files. Iβve already merged, so with further attempts to merge git says everything is up to date.
(ng)
FCD on ξ visualizations via π
ng
β― ll data/eeg_images/classified_view_of_full_montage/hts-hts_arthur_part1_raw_214350.png
-rw-r--r-- 1 john john 269K Aug 1 09:15 data/eeg_images/classified_view_of_full_montage/hts-hts_arthur_part1_raw_214350.png
(ng)
FCD on ξ visualizations via π
ng
β― git switch main
Switched to branch 'main'
Your branch is ahead of 'origin/main' by 1 commit.
(use "git push" to publish your local commits)
M data/
(ng)
FCD on ξ main [β‘] via π
ng took 44s
β― ll data/eeg_images/classified_view_of_full_montage
total 0
drwxr-xr-x 1 john john 0 Aug 1 09:22 .
drwxr-xr-x 1 john john 118 Jul 31 17:47 ..
(ng)
FCD on ξ main [β‘] via π
ng
β― dvc checkout
(ng)
FCD on ξ main [β‘] via π
ng took 26s
β― ll data/eeg_images/classified_view_of_full_montage
total 0
drwxr-xr-x 1 john john 0 Aug 1 09:22 .
drwxr-xr-x 1 john john 118 Jul 31 17:47 ..
(ng)
FCD on ξ main [β‘] via π
ng
β― cat data.dvc
outs:
- md5: eceee4a3233ba7469e55c3b1331f7267.dir
size: 113370032087
nfiles: 682398
path: data
(ng)
FCD on ξ main [β‘] via π
ng
β― git switch visualizations
Switched to branch 'visualizations'
Your branch is up to date with 'origin/visualizations'.
M data/
(ng)
FCD on ξ visualizations via π
ng took 43s
β― ll data/eeg_images/classified_view_of_full_montage/hts-hts_arthur_part1_raw_214350.png
-rw-r--r-- 1 john john 269K Aug 1 09:25 data/eeg_images/classified_view_of_full_montage/hts-hts_arthur_part1_raw_214350.png
(ng)
FCD on ξ visualizations via π
ng
β― dvc status
Data and pipelines are up to date.
(ng)
FCD on ξ visualizations via π
ng took 19s
β― cat data.dvc
outs:
- md5: bf79340da05889953b1f0c4152babe94.dir
size: 113430468835
nfiles: 682640
path: data
(ng)
FCD on ξ visualizations via π
ng