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

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

相关推荐
阿华的代码王国4 小时前
【Android】适配器与外部事件的交互
android·xml·java·前端·后端·交互
阿华的代码王国16 小时前
【Android】RecyclerView复用CheckBox的异常状态
android·xml·java·前端·后端
DavieLau2 天前
C#项目WCF接口暴露调用及SOAP接口请求测试(Python版)
xml·服务器·开发语言·python·c#
曹牧2 天前
XML头部声明发送者信息的实现方法
xml
寒士obj3 天前
熟悉并使用Spring框架 - XML篇
xml·java·spring
Arva .4 天前
Spring基于XML的自动装配
xml·java·spring
fatfishccc4 天前
循序渐进学 Spring (上):从 IoC/DI 核心原理到 XML 配置实战
xml·java·数据库·spring·intellij-idea·ioc·di
fatfishccc8 天前
【MyBatis新手避坑】详解 `Could not find resource ...Mapper.xml` 错误
xml·intellij-idea·mybatis
helloworld工程师8 天前
Dubbo应用开发之基于xml的第一个Dubbo程序
xml·dubbo·safari
coding随想10 天前
DOM的XML命名空间革命:从混乱到有序的蜕变
xml