0

I have been searching on SO for a while and found some related topics like this and this, but I still can't solve the problem I am having:

So in repo A, I used 'git lfs" and everything worked fine - a 2GB text file was tracked and pushed, and the text file now looks like this:

version https://git-lfs.github.com/spec/v1
oid sha256:4bd049d85f06029d28bd94eae6da2b6eb69c0b2d25bac8c30ac1b156672c4082
size 3771098624

Then I realized that I need to use this large text file, full_file_list.txt, in another repo, so I first copied this now 3-line file over to a different directory, and ran git init then wrote a few scripts then git add . then git commit -m "init". With this repo B set up, I also ran git lfs install then git lfs migrate import --everything and then git lfs pull. This is what I got:

batch request: missing protocol: "", 0 B | 0 B/s
error: failed to fetch some objects from ''

I don't understand why it is a batch request since I have only ONE large file. Also, when I ran git lfs ls-files, this is what I got:

a2daa75053 * main.py
4146614001 * utils/__pycache__/utils.cpython-37.pyc
50008faf1f - utils/full_file_list.txt
f2b404dbf3 * utils/utils.py

Does this mean in the new repo, the git lfs tracked all the four files? If that's the case, how do I let it only track the utils/full_file_list.txt?

Overall, I need to access the content of the 2GB text file but don't know how to. Please kindly help. Thanks!

user3768495
  • 4,077
  • 7
  • 32
  • 58

0 Answers0