我必須使用的.git /信息未經跟蹤的一些文件夾和文件/排除:未跟蹤文件仍出現在git的狀態
doc
*.txt
doc/*.txt
doc/somefile.txt
但是git的狀態說,它仍然是追蹤:
$ git st
# On branch dev
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: doc/somefile.txt
其他奇怪的是,LS-文件表明它是未經跟蹤:
$ git ls-files --ignored --exclude-from=.git/info/exclude
doc/somefile.txt
$ touch /tmp/xxx
$ git ls-files --ignored --exclude-from=/tmp/xxx
$
我對Git版本1.8.1.5
所以我斷定我可能誤解的東西或做了錯事。請任何想法嗎?
重複的:http://stackoverflow.com/questions/6964297/untrack-files-from-git – ThanksForAllTheFish