Search code examples
gitcopyrepositoryclonegitlab

how to download single folder OR file in gitlab repository


i have one repository. In this repository multiple folders are available.

i have required only one folder in this repository.

i am already try to following command but it's not working.

git clone


Solution

  • Is there any way to clone a git repository's sub-directory only?

    Use a sparse checkout, available since version 1.7.0.