远程GitHub中的灰色图标是什么意思 [英] What does a grey icon in remote GitHub mean

查看:174
本文介绍了远程GitHub中的灰色图标是什么意思的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以告诉我,为什么当我将文件推送到github时,我有灰色图标?在应用程序目录中,应该有模型,视图和控制器,但是在远程GitHub中,我无法点击。



解决方案

您创建了一个子模块,指向无法访问的远程位置。



请参阅这个答案。绿色时,该图标将指向子模块。因为子模块配置不正确,所以我假设它在你的情况下是灰色的。



鉴于 .gitmodules 如果进入应用程序并键入 git remote -v 你会看到这个模块指向的地方。这个地方目前无法访问。



在类似的情况下,我添加了一个子模块并删除了 .gitmodules 。 GitHub上的结果如下所示:




Can anyone please tell me why i have the grey icon when i push my files to github ? In side the app directory, there should be models, views , and controllers but in the remote GitHub I can't click in.

解决方案

It looks like you created a submodule, pointing to an unreachable remote location.

See this answer. That icon, when green, will point to the sub module. I'm assuming it's greyed out in your case because the sub module was incorrectly configured.

Given that .gitmodules is not present, it must have been deleted, leaving a sub module without a remote information.

If go into app and type git remote -v you will see where this module is pointing too. This place is currently unreachable.

In a similar scenario, I added a submodule and deleted .gitmodules. The result on GitHub looks like this:

这篇关于远程GitHub中的灰色图标是什么意思的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆