我的.gitignore文件组成
project/app/__pycache__
但是当我运行git status时,它报告此目录中文件的更改...
mydomain:main satishp$ git status
On branch master
Your branch is up to date with 'origin/master'.
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
deleted: project/app/__pycache__/__init__.cpython-37.pyc
deleted: project/app/__pycache__/models.cpython-37.pyc
是否不应该在.gitignore中包含此目录?还是我做错了其他事?
这是因为已经对其进行了之前
这是常见的情况:您提交了一些文件,直到后来您才意识到实际上应该忽略它们。