'git lfs fetch' found 1 object, what does it mean? #5123
-
In order to backup some GitHub repositories, I followed this tutorial, cloned those repositories with the
However, for some repositories, the output would be:
Both would create an empty folder Git LFS doc didn't explain the output. This question was previously asked on StackOverflow with no answers. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey, In order to find how many objects need to be fetched, Git LFS walks the history. "1 object found" means that it walked the history and found a single LFS pointer file. The reason you're probably seeing this message is that an empty file is its own pointer, and thus it will report a single object if you have an empty file in your repository. However, it won't actually download anything because it doesn't need to in that case. |
Beta Was this translation helpful? Give feedback.
Hey,
In order to find how many objects need to be fetched, Git LFS walks the history. "1 object found" means that it walked the history and found a single LFS pointer file. The reason you're probably seeing this message is that an empty file is its own pointer, and thus it will report a single object if you have an empty file in your repository. However, it won't actually download anything because it doesn't need to in that case.