打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Best general SVN Ignore Pattern?

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.

link|improve this question


up vote 65 down vote accepted

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            

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




Based on Burly's ignore pattern, I have added ReSharper to the ignore list

*.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 _ReSharper.* *.resharper.user

My ignore pattern for Visual Studio:

*/bin */obj */Release */Debug *.suo *.err *.log *.obj *.bin *.dll *.exe *.LOG *.user *.pdb [tT]emp [tT]empPE Ankh.Load thumbs.db *.resharper *.vspscc *.vsssccc *.scc */_ReSharper* */_ReSharper.* bin obj *.resharperoptions *.db *.bak *_ReSharper* *.snk logs output TestResults


The pattern depends on which operating system you're using.

On Linux, you'll want to block *.o, *.so, *.a, and *.la to begin with. You may also want to block *~ (backup file from editing) and #*# (emacs backup from a crash).

On Windows, you'll want *.obj, *.lib, and *.dll at the very least.

Any other files you need to block depend on your IDE, editor, and compiler.





 
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
[原创]项目svn版本控制中的分支策略
『互联网架构』软件架构
漫谈用过的版本管理工具–CVS,ClearCase和Git – wonder
全面迎接SVN时代来临
项目开发平台搭建:svn+trac+viewvc
Redmine 2.4.5与VisualSVN Server的整合
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服