目录在github上显示为灰色文件夹,但未跟踪其内容。为什么? [英] Directory showing up as a grey folder on github, but not tracking its content. Why?

查看:190
本文介绍了目录在github上显示为灰色文件夹,但未跟踪其内容。为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个目录ui-kit,它在github上显示为一个灰色文件夹。这是不可点击的。

I have a directory "ui-kit" that shows up on github as a grey folder. It's not clickable.

以下是整个内容。 gitignore:

Here is the whole content of .gitignore:

# Fleetwit
docs
uploads/*
.env
*.prj
*.pui

# Logs
logs
*.log

#Node
node_modules

# =========================
# Operating System Files
# =========================

# OSX
# =========================

.DS_Store
.AppleDouble
.LSOverride

# Thumbnails
._*

# Files that might appear on external disk
.Spotlight-V100
.Trashes

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# Windows
# =========================

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk

我试图用<$ c来检查它被忽略的原因$ c> git check-ignore --verbose ui-kit 但它不返回任何内容。
我尝试了 git add 的各种语法,但没有成功。

I tried to check why it's being ignored using git check-ignore --verbose ui-kit but it doesn't return anything. I tried various syntaxes of git add without success.

该目录曾经是自己的存储库,但在当前项目中移动,并删除了所有原始的git文件和目录。

The directory used to be its own repository, but was moved inside the current project and all the original git files and directories removed.

以下是该目录的内容:

为什么github上的图标是灰色的?
如何跟踪内容?

Why is the icon grey on github? How do I keep track of the content?

推荐答案

感谢@Msp给我的信息需要:它被称为子模块的事实。

Thanks to @Msp for giving me the piece of info I needed: the fact that it's called a sub-module.

Google搜索后,事实证明它只是需要重置的git缓存。

After googling, it turns out it was just the git cache that needed to be reset.

git rm --cached ui-kit

对于希望解决类似问题的人,您可以在以下线程中获取模式详细信息:
un-submodule一个git子模块

For people looking to fix a similar issue, you can get mode details on the following thread: un-submodule a git submodule

这篇关于目录在github上显示为灰色文件夹,但未跟踪其内容。为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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