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

后端 未结 3 960
再見小時候
再見小時候 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:40

    What you want to do is create a branch in the submodule and move the folder up and delete what you don't need. You can then manage that branch instead. If you want to push up your changes, you should be able to back merge first. Git will know that you moved the files and do the merge successfully.

    Hope this helps.

提交回复
热议问题