MackThax MackThax - 3 years ago 309
Git Question

Git LFS - partial pull

We use Git LFS. Artists keep all of their stuff in a separate directory. As a programmer, I don't have the need for that directory.

Can I create something like a local .gitignore that would prevent that directory from being pulled?

If not, is there a one-liner or something I could alias?

Answer Source

Git LFS has include/exclude functionality, as described in this man page, and in this thread.
All I had to do was type git config lfs.fetchexclude ".\DirectoryWithBigFiles\" into Powershell.

The better solution would probably be to split that part of the repository into a submodule, as described in Nogoseke's answer, but this was just so easy.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download