开发者

Git link to repository folder

I do have a question: How can I link within a git repository to a folder of another repository.

I have the following structure:

Repository One

.git

Folder A

Folder B

Repository Two

.git

Folder C

Folder D

So what I now want is, that within my repository One and its Folder B, Folder D of Repository Two is referenced. It's important that I do not reference the whole repository C, but just the Folder D of it.

I would really appreci开发者_开发百科ate any help!

Thanks in advance Alex


The simplest way, if your Os supports it (and even Windows does since Vista), is to use a symlink for referring to folder D from folder B.
But you would maintain the two repos separate.

git submodule wouldn't be adapted to your case, since it refers to the all repo as a module.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜