当我克隆advimage存储库时,img/
目录似乎未被跟踪。在github存储库中的未跟踪目录中跟踪文件
[email protected] advimage % git st
?? img/
[email protected] advimage % git status
# On branch develop
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# img/
nothing added to commit but untracked files present (use "git add" to track)
这个目录是不是空的,还有的跟踪在img/
命名sample.gif文件。我尝试添加 一个空文件:
[email protected] advimage % touch img/hede
[email protected] advimage % git add img/hede
[email protected] advimage % git st
A img/hede
?? img/
[email protected] advimage % rm -rf img
[email protected] advimage % git st
AD img/hede
D img/sample.gif
[email protected] advimage % git reset
Unstaged changes after reset:
M img/sample.gif
[email protected] advimage % git st
D img/sample.gif
[email protected] advimage %
git fsck --full
输出是空的。为什么我不能在git status
列表中删除img/
?
嘿,我的git版本比版本库服务器git更旧。 – gokmen 2012-09-05 14:06:03