Hello,

We are migrating from SVN to GitHub version control system. As we have a 
huge repository, I'm trying to  git sparse-checkout feature to checkout and 
download the specific folder from the repo instead of cloning entire repo 
every time. 

Here are the steps that I have performed to do sparse clone to my local:
 
# Create a directory, so Git doesn't get messy, and enter it 1. mkdir 
my-dir && cd my-dir # Start a Git repository 2. git init # Track 
repository, do not enter subdirectory 3. git remote add -f origin 
https://github.com/terroo/fonts/ # Enable the tree check feature 4. git 
config core.sparseCheckout true # setting up the folder structure that is 
needed to checkout 5. git sparse-checkout set /path/to/directory
## Download with pull, not clone 6. git pull origin <branch>

Expected result: It need to download only the /path/to/directory to the 
local

Actual Result: It downloads the respective /path/to/directory but not 
downloading the lfs file which are stored in that /path/to/directory

I'm trying several ways to handle these lfs files using *git lfs pull *but 
it is scanning entire repo instead of the /path/to/directory mentioned and 
pulls all the files which is taking huge amount of time and fails with 
errors.

Any suggestions on handling the LFS files using the git sparse-checkout ?

Appreciate your help..!!!

Thanks in advance,
Vinay

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/e4357ec5-ed7f-4473-9f51-7f6b8770f0c9n%40googlegroups.com.

Reply via email to