最好的通用 SVN 忽略模式? [英] Best general SVN Ignore Pattern?

查看:25
本文介绍了最好的通用 SVN 忽略模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最好(或尽可能好)的通用 SVN 忽略模式是什么?

有许多不同的 IDE、编辑器、编译器、插件、平台等特定文件和一些重叠"的文件类型(即适合某些类型的项目而不适合其他类型的项目).

然而,无论您的开发环境的具体情况如何,您都不想将大量文件类型自动包含在源代码管理中.

这个问题的答案可以作为任何项目的良好起点——只需要他们添加他们需要的少数环境特定项目.它也可以适用于其他版本控制系统 (VCS).

解决方案

我会在这个问题上加上我自己的两分钱:

我将以下 SVN 忽略模式与 TortoiseSVN 和 Subversion CLI 一起用于 Windows 和 Linux 平台上的本机 C++、C#/VB.NET 和 PERL 项目.这对我来说很有效!

复制和粘贴格式:

<前>*.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store thumbs.db Thumbs.db *.bak *.class *.exe *.dll *.mine*.obj *.ncb *.lib *.log *.idb *.pdb *.ilk *.msi* .res *.pch *.suo *.exp *.*~ *.~* ~*.* cvs CVS.CVS .cvs release Release debug Debug ignore Ignore bin Bin obj Obj *.csproj.user *.user *.generated.cs

为了可读性而格式化:

<前>*.o *.lo *.la #*# .*.rej *.rej.*~ *~ .#* .DS_Store thumbs.dbThumbs.db *.bak *.class *.exe *.dll*.mine *.obj *.ncb *.lib *.log*.idb *.pdb *.ilk *.msi* .res *.pch *.suo*.exp *.*~ *.~* ~*.* cvs CVS .CVS .cvs发布发布调试调试忽略 忽略 bin Bin obj Obj*.csproj.user *.user*.generated.cs

What is the best (or as good as possible) general SVN ignore pattern to use?

There are a number of different IDE, editor, compiler, plug-in, platform, etc. specific files and some file types that "overlap" (i.e. desirable for some types projects and not for others).

There are however, a large number of file types that you just never want included in source control automatically regardless the specifics of your development environment.

The answer to this question would serve as a good starting point for any project - only requiring them to add the few environment specific items they need. It could be adapted for other Version Control Systems (VCS) as well.

解决方案

I'll add my own two cents to this question:

I use the following SVN ignore pattern with TortoiseSVN and Subversion CLI for native C++, C#/VB.NET, and PERL projects on both Windows and Linux platforms. It works well for me!

Formatted for copy and paste:

*.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store thumbs.db Thumbs.db *.bak *.class *.exe *.dll *.mine *.obj *.ncb *.lib *.log *.idb *.pdb *.ilk *.msi* .res *.pch *.suo *.exp *.*~ *.~* ~*.* cvs CVS .CVS .cvs release Release debug Debug ignore Ignore bin Bin obj Obj *.csproj.user *.user *.generated.cs

Formatted for readability:

*.o *.lo *.la #*# .*.rej *.rej
.*~ *~ .#* .DS_Store thumbs.db 
Thumbs.db *.bak *.class *.exe *.dll
*.mine *.obj *.ncb *.lib *.log 
*.idb *.pdb *.ilk *.msi* .res *.pch *.suo 
*.exp *.*~ *.~* ~*.* cvs  CVS .CVS .cvs  
release Release debug Debug
ignore Ignore bin Bin obj  Obj
*.csproj.user *.user
*.generated.cs

这篇关于最好的通用 SVN 忽略模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆