I did not check some folders and files with .git / info / exclude:
doc *.txt doc/*.txt doc/somefile.txt
But git status says it is still being tracked:
$ 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
Another strange thing is that ls files show that it is not being tracked:
$ git ls-files --ignored --exclude-from=.git/info/exclude doc/somefile.txt $ touch /tmp/xxx $ git ls-files --ignored --exclude-from=/tmp/xxx $
I am on git version 1.8.1.5
So, I came to the conclusion that I can misunderstand something or do something wrong. Any idea please?
source share