Should I add .idea/workspace.xml to gitignore?

青春壹個敷衍的年華 提交于 2019-12-06 18:47:39

问题


When I try to checkout another branch, I get this error:

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

I did some research and it seems some people avoided this problem by adding the afformentioned file to gitignore.

Is this a wise thing to do? If git is ignoring your workspace.xml file, won't it mess up your experience in the IDE (in my case, Jetbrains Webstorm)?


回答1:


Based on JetBrains you should not place the workspace.xml and tasks.xml in repo, as they contain user specific settings.



来源:https://stackoverflow.com/questions/27647889/should-i-add-idea-workspace-xml-to-gitignore

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!