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

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

问题描述

谁能告诉我为什么当我将文件推送到 github 时我有灰色图标?在 app 目录旁边,应该有模型、视图和控制器,但在远程 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.

鉴于 .gitmodules 不存在,它肯定已被删除,留下一个没有远程信息的子模块.

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

如果进入 app 并输入 git remote -v 你也会看到这个模块指向的地方.目前无法访问此地点.

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

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

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

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

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