Git 无法识别新文件夹添加及其子目录 [英] Git does not recognize new folder adds and its sub directories
问题描述
我有:
dirA/dir1
dirA/dir2
dirA
已添加,我在浏览器上看到它 - 当我点击dirA
"时,我看到 dir1
和 dir2
,像我在下面解释的那样变灰.dir1
和 dir2
,都有多个子目录和文件.
dirA
has been added and I see it on the browser - when I click "dirA
", I see dir1
and dir2
, grayed out like I have explained below.
dir1
and dir2
, both have more than one sub-directories and files.
git add dir1
git commit -m "..."
我收到一条消息在分支master上,没有什么可提交的,工作目录干净
"
我不知道为什么它不会通过,我通过浏览器在 GitHub 存储库中看到那些变灰".
I am not sure why it wont go through and I see those as "grayed out" on the GitHub repo via browser.
有人可以帮忙吗?我在 stackoverflow 上看到了一些类似的线程,但它们对我没有帮助.
Can someone help? I saw some similar threads on stackoverflow but they did not help me.
推荐答案
如果你在 GitHub 上看到grayed"文件夹,后面跟着一个 SHA1,那些是 子模块.
If you see on GitHub "grayed" folder, followed by a SHA1, those are submodules.
这意味着它们是嵌套的 git 子存储库,由主存储库引用.
That means they are nested git sub-repos which are referenced by the main repo.
这篇关于Git 无法识别新文件夹添加及其子目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!