当我克隆 advimage 存储库时,img/
目录似乎未跟踪。
gokmen@rodosto advimage % git st
?? img/
gokmen@rodosto 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)
这个目录不是空的,有一个名为sample.gif的跟踪文件img/
。我尝试添加一个空文件:
gokmen@rodosto advimage % touch img/hede
gokmen@rodosto advimage % git add img/hede
gokmen@rodosto advimage % git st
A img/hede
?? img/
gokmen@rodosto advimage % rm -rf img
gokmen@rodosto advimage % git st
AD img/hede
D img/sample.gif
gokmen@rodosto advimage % git reset
Unstaged changes after reset:
M img/sample.gif
gokmen@rodosto advimage % git st
D img/sample.gif
gokmen@rodosto advimage %
git fsck --full
输出为空。为什么我不能从img/
列表中删除git status
?