开发者

Git submodule from just a directory of another repository

开发者 https://www.devze.com 2023-01-19 04:44 出处:网络
Is it possible to create a submodule that does not link to a repository directly, but to a directory inside it?

Is it possible to create a submodule that does not link to a repository directly, but to a directory inside it?

For example, let fw.git be a framework repository, with these dirs:

|fw.git
\---|test
    |code
    |tool开发者_C百科s

I'd like to submodule the framework code, just the code directory, not other directories.


No, it's not possible. Linus intentionally made git not work like that.

0

精彩评论

暂无评论...
验证码 换一张
取 消