我应该将 .idea/workspace.xml 添加到 gitignore 吗?

2024-01-07

当我尝试签出另一个分支时,出现以下错误:

error: Your local changes to the following files would be overwritten by checkout:
        .idea/workspace.xml
Please, commit your changes or stash them before you can switch branches.
Aborting

我做了一些研究,似乎有些人通过将上述文件添加到来避免这个问题gitignore.

这是明智之举吗?如果git正在忽略你的workspace.xml文件,它不会扰乱您在 IDE 中的体验(在我的例子中是 Jetbrains Webstorm)吗?


基于捷脑公司 https://intellij-support.jetbrains.com/entries/23393067-How-to-manage-projects-under-Version-Control-Systems?flash_digest=57e52233e688868381ba9266eef953823b82a4be你不应该把工作区.xml and 任务.xml在存储库中,因为它们包含用户特定的设置。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

我应该将 .idea/workspace.xml 添加到 gitignore 吗? 的相关文章

随机推荐