我有一个目录“ui-kit”,它在 github 上显示为灰色文件夹。它不可点击。
这是.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
我试图检查为什么它被忽略使用git check-ignore --verbose ui-kit
但它不返回任何内容。
我尝试了各种语法git add
没有成功。
该目录曾经是它自己的存储库,但已移至当前项目内,并删除了所有原始 git 文件和目录。
这是该目录的内容:
为什么github上的图标是灰色的?
我如何跟踪内容?
感谢@Msp 为我提供了我需要的信息:它被称为子模块。
谷歌搜索后,发现只是 git 缓存需要重置。
git rm --cached ui-kit
对于想要解决类似问题的人,您可以在以下线程中获取模式详细信息:取消子模块 git 子模块
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)