問題描述
.gitignore 文件內容如下:
.pyc
*.pyc
user_files/
.vscode/
__pycache__//.idea/misc.xml
/.idea/modules.xml
/.idea/inspectionProfiles/profiles_settings.xml
/.idea/inspectionProfiles/Project_Default.xml
/.idea/batrp_webbackend-server-dev.iml
/.idea/workspace.xml
/.idea/vcs.xml
Pycharm 查看git本地改動時仍然勾選workspace.xml
原因分析
從 Git 的跟蹤列表中移除它,通常使用?git rm --cached
?命令。
git rm -f --cached -r .idea/workspace.xml
執行以上命令后,刷新即可取消勾選。