svn忽略无关文件thumbs.db等

svn , when commit ignore files such as Thumbs.db,index.html.bak 在使用SVN提交文件目录时,经常会看到提交文件列表里包含了诸如: 
Thumbs.db 
index.html.bak 等 
冗余文件,这些文件我们没有必要提交到svn,并使用svn管理它,那么有没有智能点的办法呢? 

有,设置方法如下: 

右击鼠标-> 选择 TortoiseSVN -> Setting (设置) -> General (常规设置) -> 在右侧 "Golbal ignore pattern"(全局忽略样式)内填入*.db *.bak -> 确定; 

使用eclips的时候 windows -> performances -> team -> Ignored Resources -> 填入*.db *.bak 


设置后,每次进行svn操作,扩展名为db和bak的文件对svn就是透明的了! 

根据自己的情况,您也可以填入其它扩展名来使svn忽略扩展名为此的文件,多个扩展名请使用空格隔开。 

English 

sometimes when we use svn ,we'll found that, when committing, some files such as thumb.db will be committed, how to make svn ignore it ? 

the following content will tell you how~ 

while using eclips,windows -> performances -> team -> Ignored Resources -> add *.db *.bak 

then svn will ignore the file types in the list~ add other files as you want. 

good luck~ 

posted @ 2011-11-11 13:44  oneroundseven  阅读(2177)  评论(0编辑  收藏  举报