Subversion:svn status 显示大量不需要的 .metadata 文件
我正在尝试在 Ubuntu Linux 上设置 Subversion。它似乎有效,除了当我进行一项更改并尝试 svn status 时,我发现 .metadata 目录中大约有 100 个文件已更改。
我的 ~/.subversion/config 文件当前包含以下行:
global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo *.rej *~ .*.swp .DS_Store
我需要添加什么来忽略 .metadata 文件?
如果重要的话,Eclipse 使用所考虑的目录来使用 PyDev 进行 Python 开发。
I'm trying to set up Subversion on Ubuntu Linux. It seems to be working, except that when I made one change and tried svn status
, I found about 100 files had been changed, in the .metadata
directory.
My ~/.subversion/config file currently contains the following line:
global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo *.rej *~ .*.swp .DS_Store
What do I need to add to ignore the .metadata files?
The directory under consideration is used by Eclipse for Python development using PyDev, if that matters.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以通过运行以下命令来忽略带有状态的未版本化文件:
You can ignore unversioned files with status by running:
您可以简单地指示您的 svn 完全忽略该目录:
更多详细信息请参阅
注意:在这种情况下,我建议您在 .metadata Eclipse 目录之外定义 Eclipse 项目(.project、.classpath)。
这样,您就可以:
.metadata
树请参阅SO问题“你保留你的项目吗文件受版本控制?”
You could simply instruct your svn to ignore that directory entirely:
More details in this SO answer.
Note: in this case, I would recommend having your Eclipse project defined (.project, .classpath) outside the
.metadata
Eclipse directory.That way, you can:
.metadata
treeSee the SO question "Do you keep your project files under version control?"