git-删除workspace.xml的跟踪

问题描述

.gitignore 文件内容如下:

bash 复制代码
.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 命令。

bash 复制代码
git rm -f --cached -r .idea/workspace.xml

执行以上命令后,刷新即可取消勾选。

相关推荐
spencer_tseng2 小时前
org.xml.sax.SAXParseException: cvc-complex-type.3.2.2 sql-query result-type
xml
派大鑫wink5 小时前
【Day48】MyBatis 注解开发:替代 XML 映射文件
xml·java·mybatis
sunnyday04261 天前
Spring Boot 日志配置详解:log4j2.xml 的完整配置指南
xml·spring boot·log4j
熊出没1 天前
关于MyBatis Mapper 接口与 XML 映射机制的分析
xml·microsoft·mybatis
她说..2 天前
FIND_IN_SET()方法
xml·java·spring boot
北辰当尹3 天前
xml基础
android·xml
qqqahhh6 天前
xml文件的动态化配置,导入
xml·spring·springboot
吴声子夜歌6 天前
Maven——pom.xml详解
xml·java·maven
iSee8577 天前
struts2 XML外部实体注入漏洞复现(CVE-2025-68493)
xml·安全·struts2
爱吃土豆的马铃薯ㅤㅤㅤㅤㅤㅤㅤㅤㅤ8 天前
mapper.xml中的大于等于、小于等于
xml