Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • Can you do partial checkout like with svn:externals? Commented Aug 2, 2017 at 17:03
  • @nowox Yes, you can have sparse checkout (git 1.7+ stackoverflow.com/a/2372044/6309) associated to submodules (stackoverflow.com/a/17693008/6309) Commented Aug 2, 2017 at 17:58
  • unfortunately all the sparse checkout related answers never give any example :( I'll try to write a Gist example for this... Commented Aug 3, 2017 at 6:17
  • 1
    There is still an issue with this. You still have to get the whole history of a repository where you only need one small part. In my case is 100kB over 2GB. I can of course use --depth but it doesn't really address the problem. Commented Aug 3, 2017 at 6:19
  • 1
    @nowox It is best to ask a new question explaining exactly what your use case is: I have no idea if your 2GB repo is a submodule, or a main repo with submodule, and what exactly you need to extract from it. Commented Aug 3, 2017 at 6:24