我在git的根目錄下面新建了一個(gè).gitignore文件,然后添加了以下的內(nèi)容
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
但是如果我現(xiàn)在修改了一個(gè).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")
請(qǐng)問應(yīng)該怎么解決這個(gè)問題,讓git忽視.pyc文件的修改
.gitignore下面制定了*.pyc但是無效?
慕碼人8056858
2019-02-26 10:19:32