0
文件雖然有git的命令打轉轉,我運行以下命令:刪除「./」未經跟蹤的混帳
git checkout-index --prefix=./test
以爲它會檢出文件到test
目錄。 (它運行後,很顯然,事實並非如此。)不過,我知道有當我運行git status
如下:
Untracked files:
(use "git add <file>..." to include in what will be committed)
./
nothing added to commit but untracked files present (use "git add" to track)
如何擺脫這個文件?我沒有出現ls -la
(顯示的正常.
和..
除外)。
啊,這很尷尬。它看起來像我有這樣的輸出,因爲我在一個新創建的目錄中運行git status尚未簽入。我錯誤地將此與運行git checkout-index相關聯。 – Brendon