回答(17)

2 years ago

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

我在Windows和Linux平台上对TortoiseSVN和Subversion CLI使用以下SVN忽略模式,用于本机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.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

2 years ago

根据Burly的忽略模式,我将ReSharper添加到忽略列表中

格式化复制和粘贴:

*.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

格式化可读性:

*.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

2 years ago

我对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 *.crunchsolution.* *.crunchproject.*

格式化以提高可读性

*/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

*.crunchsolution.* *.crunchproject.*

2 years ago

每次我遇到一个文件,我通常不想在存储库中,我更新模式 . 我相信没有"best"模式 - 它始终是你发展的 .

而且,你不太可能想到所有可能的“可忽略的”文件类型 - 你总会遇到一个你忘记包含的文件类型 . 这就是为什么在你去的时候更新模式效果最好 .

2 years ago

Windows用户可能想要输入desktop.ini和thumbs.db .

2 years ago

用于我的Visual Studio项目

*/bin */obj *.user *.suo

您可以从那里扩展更多文件类型 .

2 years ago

Visual Studio(VC)用户肯定需要排除 .ncb 文件

2 years ago

Mac用户可能想要投入.DS_Store . 另外,如果有开发人员使用Emacs或Vim,你可能想添加~~和## .

2 years ago

对于Eclipse,我使用:

bin

.*

. *获取所有项目配置 . 您几乎从不想要检查“隐藏”目录或文件,但如果它出现,您仍然可以添加它 .

2 years ago

由于您可能正在使用第三方库和dll作为项目的一部分,因此我没有看到从存储库中阻止* .lib和* .dll的智慧 . 这些是要存储在存储库中的内容 .

2 years ago

Visual Studio 2010用户应添加 ipch (包含C预编译头文件夹的文件夹)和 *.sdf (intellisense用于任何类型项目的大文件) .

2 years ago

该模式取决于您使用的操作系统 .

在Linux上,你要阻止** . o ,* . so ,* . a 和* . la 开头 . 您可能还想阻止*〜(编辑备份文件)和##(崩溃时的emacs备份) .

在Windows上,你至少需要** .obj ,* . lib 和* . dll * .

您需要阻止的任何其他文件取决于您的IDE,编辑器和编译器 .

2 years ago

如果您使用Resharper,请将其添加到混合物中 .

另一个要注意的是Ankh * . *

2 years ago

别忘了NCrunch临时文件:

*.crunchsolution.* *.crunchproject.*

2 years ago

和核心转储(cygwin,linux)

*.stackdump core.*

2 years ago

gitignore.io为git提供可配置的模式 . 它们提供了一个可读列表,您需要重新格式化SVN .

# Created by https://www.gitignore.io/api/microsoftoffice,windows

### MicrosoftOffice ###

*.tmp

# Word temporary

~$*.doc*

# Excel temporary

~$*.xls*

# Excel Backup File

*.xlk

# PowerPoint temporary

~$*.ppt*

# Visio autosave temporary files

*.~vsdx

### Windows ###

# Windows image file caches

Thumbs.db

ehthumbs.db

# Folder config file

Desktop.ini

# Recycle Bin used on file shares

$RECYCLE.BIN/

# Windows Installer files

*.cab

*.msi

*.msm

*.msp

# Windows shortcuts

*.lnk

2 years ago

gitignore.io为git提供可配置的模式 . 它们提供了一个可读列表,您需要重新格式化SVN .

# Created by https://www.gitignore.io/api/microsoftoffice,windows

### MicrosoftOffice ###

*.tmp

# Word temporary

~$*.doc*

# Excel temporary

~$*.xls*

# Excel Backup File

*.xlk

# PowerPoint temporary

~$*.ppt*

# Visio autosave temporary files

*.~vsdx

### Windows ###

# Windows image file caches

Thumbs.db

ehthumbs.db

# Folder config file

Desktop.ini

# Recycle Bin used on file shares

$RECYCLE.BIN/

# Windows Installer files

*.cab

*.msi

*.msm

*.msp

# Windows shortcuts

*.lnk

它似乎可以直接用作 svn:global-ignore

svn java.mine_最好的一般SVN忽略模式?相关推荐

  1. 一次向svn中增加所有新增文件 svn add all new files【转】

    以下摘自:<卓有成效的程序员>之自动化 转自:http://blog.csdn.net/spare_h/article/details/6677435 我经常会一次往Subversion里 ...

  2. svn拉取文件合并_svn - SVN - 大象笔记

    checkout 需要账号密码的项目 svn checkout http://www.svnchina.com/svn/sunzhongwei --username sunzhongwei 然后 SV ...

  3. xcode SVN 上传代码只能用SVN client 或者SVN 命令行

    1.更改配置(不懂的话就直接跳过吧) bogon:~ chenshuangchou$ open ~/.subversion/config 启动配置文件,然后在配置文件中选择要忽略的文件类型 找到 gl ...

  4. linux svn更换数据仓库,Linux环境下SVN数据仓库迁移

    上一篇文章介绍了Windows环境下SVN数据的备份与还原,这篇文章介绍下Linux环境下数据迁移. 一准备工作 1安装环境 1 centOS7 2可上网 2软件需求 1 winSCP 2 PuTTy ...

  5. linux备份svn仓库脚本,Centos详细搭建svn以及备份脚本

    Centos6.1详细搭建svn独立服务器 1准备源码包:2个源码包一个是Subversion-1.6.20.tar.gz一个是Subversion-deps-1.6.20.tar.gz 源码安装目录 ...

  6. 提交代码,SVN被锁定,提示:svn is already locked解决方案

    提交代码,SVN被锁定,提示:svn is already locked解决方案 参考文章: (1)提交代码,SVN被锁定,提示:svn is already locked解决方案 (2)https: ...

  7. SVN系列操作(二)svn不显示图标的解决方法

    SVN系列操作(二)&svn不显示图标的解决方法 参考文章: (1)SVN系列操作(二)&svn不显示图标的解决方法 (2)https://www.cnblogs.com/zymnst ...

  8. 重置SVN用户名与密码,修改SVN的IP地址

    重置SVN用户名与密码,修改SVN的IP地址 重置SVN用户名与密码 ============== 1.通过删除SVN客户端的账号配置文件 (1)找到我们使用的客户端配置文件,在window xp下面 ...

  9. Linux下svn新建用户,Linux下建立svn工程

    1   连接方式说明 svn提供的访问方式有: file:///本地路径/to/svnrepo/            //访问本地磁盘 http://host/to/svnrepo/         ...

最新文章

  1. 同步服务老是报错_SQL2005的维护计划做异地备份,采用另一台服务器设置共享文件夹的方式同步。但是一直报错,本地备份可以...
  2. vlayout 1.2.20 发布,阿里 LayoutManager 定制化布局
  3. 【指标统计】本区或跨区取WEB统计指标配置方法
  4. C# 以管理员身份运行WinForm程序
  5. 怎么关闭或者卸载ivanti_电脑软件卸载不了怎么办,教您解决电脑软件无法卸载方法技巧...
  6. java怎么把数组的元素个数_想问一下怎样才可以把一个数 放在已知数组里面
  7. java重载中this的作用_Java2:构造方法、方法重载和this关键字
  8. asp.net 运行原理
  9. 了解一个百万级 PHP 网站的架构
  10. maven仓库repositories和mirrors的配置及区别详解(轻松搞明白)
  11. Arduino环境使用TM1638扩展版
  12. 刷屏!日本内政部向国民宣传5G的短视频:未来将是这样!
  13. html获取随机字母,html5 canvas随机生成英文字母数字组合图片验证码代码
  14. 如何制作个人的纯手写电子签名
  15. 玩转高并发,17年开发经验架构师,历时三年编写Java高并发三部曲
  16. Android相机资源占用,为保护用户隐私Android 11调整相机选项 APP调用相机时只可使用默认相机...
  17. github+hexo搭建自己的博客网站(六)进阶配置(搜索引擎收录,优化你的url,添加RSS)...
  18. Web-Based Enterprise Management (WBEM) Initiative
  19. 项目管理逻辑:项目如何算是做完?什么是项目管理中的PPP模式?
  20. HK32F030C8T6把OSC_IN和OSC_OUT作为普通的IO口使用

热门文章

  1. python类的实例方法必须创建对象后_Python3 类方法,实例方法,静态方法详解...
  2. 爬虫python可以干嘛_【Python爬虫】什么是爬虫,爬虫能做什么?
  3. python web环境傻瓜搭建_Python 环境搭建以及神器推荐,果断收藏!
  4. java赋值语句_深度分析:面试阿里,字节99%会被问到Java类加载机制和类加载器...
  5. Do Now 一个让你静心学习的APP——团队博客
  6. bzoj 1014 火星人prefix —— splay+hash
  7. 1.Spring框架入门
  8. 【iCore4 双核心板_ARM】例程十一:DMA实验——存储器到存储器的传输
  9. mybatis开启字段自动映射为java驼峰命名规则
  10. springmvc错误java.lang.IllegalArgumentException