How to change a git submodule to point to a subfolder?

后端 未结 3 958
再見小時候
再見小時候 2020-12-04 16:20

Skimming through the SubModule tutorial, I created a submodule out of the boto project. Then, I discovered that I actually need only a subset of this project - specifically,

3条回答
  •  遥遥无期
    2020-12-04 16:46

    You cannot clone only a part of a repository. This is because git treats the repository as a whole object : when you get it, you get it all.

    So, the solution here would be to fetch the submodule in another directory, then use a symlink to achieve your goal.

提交回复
热议问题