I am getting wierd scenario on Centos 7.5.1804 with git 1.8.3.1.
I have .gitignore
as
*.pyc
but git status
showing following
$ git status
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# a.pyc
# b.pyc
# c.pyc
# d.pyc
Also, those files have never been committed. So git status should not have shown those files. What could cause this to happen?