How to clone only a folder from a git submodule?

前端 未结 3 540
孤独总比滥情好
孤独总比滥情好 2020-12-24 10:24

I\'m trying to get just a folder from an external github repo to use in my project.

I want my project setup to be like this:

-my_project
    -submodu         


        
3条回答
  •  感动是毒
    2020-12-24 10:43

    What you want to do is not feasible because you cannot clone a part of a repository.

    See details in duplicate How to change a git submodule to point to a subfolder?

提交回复
热议问题