Git不识别新的文件夹添加及其子目录 [英] Git does not recognize new folder adds and its sub directories
问题描述
我有:
dirA/dir1
dirA/dir2
dirA
已添加,我在浏览器中看到 - 当我点击code> 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 "..."
我收到一条消息在分支主机上,没有提交,工作目录清理
我不知道为什么不会经历,我通过浏览器在GitHub repo上看到那些灰显。
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.
推荐答案
如果您在GitHubgreed文件夹中看到,通过SHA1,那些是子模块。
If you see on GitHub "grayed" folder, followed by a SHA1, those are submodules.
意味着它们是由主要repo引用的嵌套git子回收。
That means they are nested git sub-repos which are referenced by the main repo.
这篇关于Git不识别新的文件夹添加及其子目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!