當我克隆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