On my Ubuntu system, I installed Git LFS as well as Git, and cloned a repo that has some of its files managed by Git LFS. But those files didn't download, other than a marker file. (I didn't realize they weren't the whole file until I checked the file size, because they displayed in my file system with the right names, in the right places.)
I see from this answer that git lfs clone
has been deprecated, and simply git clone
should work. But when I tried that I got confused. I am used to just running git clone https://foobar.git
and letting it set up the directory. But Git LFS won't work unless it has been initialized with git lfs install
in each directory where it is being used. (That's why this didn't work the first time, at least now I know that.)
So I set up the directory, ran git init
and git lfs install
inside it, and then ran git clone https://foobar.git
. Which will create a directory for the repo nested inside the directory I created, will it not? That seems wrong somehow.
It is going to take a few hours to clone this repo, so I would like to be confident I'm doing this right. Looking at the documentation on GitHub, it seems to say the above set of commands is correct - if you read the whole thing. The bits of information are separated by a thousand words or so. Is that the way to do it?