Git excluded files still show as unmapped

Files that I excluded are still showing as unplayed. What for? What to do about it? I am using version 1.9.1

$ cat .git/info/exclude
  *.[oa]
  *~
  main
$ git status
On branch master
Untracked files:
     (use "git add <file>..." to include in what will be committed)

main
main~
main.o
+4
source share
2 answers

I recreated the whole script in another directory and saw what the problem was: the lines in .git/info/excludewere indented with a few spaces - as soon as I remove the spaces, everything works; if I put spaces again, it will break. Something needs to be careful.

+2
source

I think you added this file in .gitignoreafter making changes to them. These files are stored in the cache, so you should use them in the cache using the following command:

git rm --cached filename

or

git rm -r --cached .// To delete all files

, .

0

Source: https://habr.com/ru/post/1613035/


All Articles