1 year ago

#371948

test-img

Abel

How to query for objects tracked by LFS on github or any other remote

Looking over the docs and trying some semi-random commands, I couldn't find a way to use git lfs to query for objects that were tracked by LFS.

Locally, I can just use:

git lfs ls-files -all

Which, interestingly, does give me a list of OIDs (pointers) and their original file name and location, but does not give me the actual location of the large binary files. I can find them only by searching for the OID in the .git\lfs\objects dir. i'm not aware of a better way.

Is there a synonym for lfs ls-files where I can query the remote?

I'm mainly asking this because I notice a discrepancy between the files tracked by LFS locally and the ones tracked on the remote server. After git clone the set of files tracked by LFS is far larger than the files that I can find manually having an OID pointer on the Github server. I'm trying to understand why this discrepancy exists.

git-lfs

0 Answers

Your Answer

Accepted video resources