我在git的根目錄下面新建了一個.gitignore文件,然后添加了以下的內容
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
但是如果我現在修改了一個.py文件,編譯后用git status查看
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: views.py
modified: views.pyc
no changes added to commit (use "git add" and/or "git commit -a")
請問應該怎么解決這個問題,讓git忽視.pyc文件的修改
.gitignore下面制定了*.pyc但是無效?
慕碼人8056858
2019-02-26 10:19:32