【发布时间】:2010-11-10 20:37:11
【问题描述】:
我在 ~/bin: 得到 git-status:
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# screen/dev/
我跑
git add --force screen/dev/
我得到了和以前一样的 git-status。我在文件夹中单独添加每个文件,但我得到相同的 git-status。
screen/dev/ 中没有 .git。该文件夹似乎不是一个 sumbodule。
如何在 ~/bin 处将文件夹及其内容强制添加到我的 git 中?
【问题讨论】:
-
你能用一个新的 Git 存储库重现这个,从“git init”开始吗?
-
@Greg:我无法用新的 Git 存储库重现问题,尽管我在文件结构中保留了完全相同的名称。 --- 这表明我的 repo 中必须有一些文件可以操作文件夹 screen/dev