每次我做git狀態都有這個文件夾顯示爲未跟蹤。git仍然未追蹤追加
$ git status
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# src/error/
nothing added to commit but untracked files present (use "git add" to track)
即使在SRC /錯誤做git add .
,git commit -a
文件夾後一直顯示爲未跟蹤。其他非分頁文件每次都提交,只有這個文件夾不斷給出問題。也git不報告任何錯誤。這裏可能是什麼問題?
你試過'git add src/error /'? – strager 2010-08-10 07:38:08
我試過,它沒有工作我有一個文件在該文件夾中,我也嘗試直接添加該文件也無法正常工作。 – slayerIQ 2010-08-10 07:42:20
您是否嘗試在src/error下添加特定文件?你在.gitignore文件中有什麼? – David 2010-08-10 07:55:11