为什么Github中的嵌套仓库,有的能点击打开,有的灰掉了不能点击打开?
phpcn_u1582
phpcn_u1582 2017-05-02 09:36:24
0
2
584

网上查了下,有一种说法是,Github中的嵌套仓库(即某个git仓库中的子文件夹本身也是一个git仓库;注意,不是指git submodule)在Github中显示为灰色,是不能点击打开的;在我自己上传到Github中的vim仓库里,所有由Vundle管理的来自Github的插件所在的文件夹也确实是灰色不能点击的。

可是今天我在Github上看到一个仓库,却不完全是如此,请打开下面的链接(本来截了图,但segmentfault今天传不了图片):https://github.com/hzheng/vimconf/tree/master/bundle。可以发现,大部分都是可以点击打开的,翻到后面,有两个是灰色的。

请问,为什么有的能点击打开,有的却灰掉了不能点击打开?有什么设置能不灰掉这些嵌套仓库子文件夹吗?

谢谢!

phpcn_u1582
phpcn_u1582

reply all(2)
迷茫

You clearly know the concept of git submodule, why do you hide your ears and say that the plug-ins in hzheng/vimconf are nested warehouses, not sub-modules? However, the SHA-1 commit IDs behind those bundles already indicate that they are all submodules. If you don’t believe it, you can take a look at .gitmodules.

Peter_Zhu

Because the one that cannot be opened is not hosted on github. If it is hosted on github, you can click to open it directly.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!