Skip to content

Instantly share code, notes, and snippets.

@nicognaW
Created August 16, 2024 02:06
Show Gist options
  • Select an option

  • Save nicognaW/d1c0656ea4854c9d6b2c34249d11b24f to your computer and use it in GitHub Desktop.

Select an option

Save nicognaW/d1c0656ea4854c9d6b2c34249d11b24f to your computer and use it in GitHub Desktop.
How to clone only a subdirectory of a git repo without downloading the whole repo
@nicognaW
Copy link
Author

note: for pushing, you still need to download the whole repo

reference: https://superuser.com/questions/1043602/git-sparsecheckout-repo-pushes-full-repo-to-remote#answer-1043608

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment