Set up sparse-checkout at the repo level (vs. local config)

31 Views Asked by At

I have a situation where I have some submodules that I want to do partial checkouts of. I was able to get this working with git sparse-checkout, by manually editing .git/info/modules/NAME/info/sparse-checkout. However, I want this setting to be saved in the repository itself, so that anyone who uses the repository only checks out that one directory in the submodule. Is there a way to store this in some sort of repository-level config vs. the local-level one?

0

There are 0 best solutions below