Search code examples
gitgit-submodulesgit-lfs

How do I 'lfs pull' on a specific submodule?


I need to perform an lfs pull for a specific git submodule.

How can I perform a 'git lfs pull' on a specific submodule?


Solution

  • Submodules are normal Git repositories, so you can just change into it with cd or by using the -C option to git. So if your submodule were in foo/bar, you'd write the following:

    $ git -C foo/bar lfs pull