关于SVN客户端忽略/移除与版本控制无关的文件

如果你已经安装过SVN的相关客户端,那个config文件就肯定是存在的,如果没有安装过,那就忽略这篇文章...

修改前请先备份文件 ~/.subversion/config.

1,打开Terminal,输入命令:

$ open ~/.subversion/config
 
2,在打开的文件中寻找:`global-ignores =`,找到后直接把整行豆替换成如下:
global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.pyc *.pyo *.rej *~ #*# .#* .*.swp .DS_Store *.xcuserstate *.xcuserdatad *.xcbkptlist *.xcscheme *.xcuserdatad *.xccheckout *.xcscmblueprint

3,继续寻找`[auto-props]`,找到后,把后面的有效设置替换成如下(可选):
*.c = svn:eol-style=native
*.cpp = svn:eol-style=native
*.h = svn:keywords=Author Date Id Rev URL;svn:eol-style=native
*.dsp = svn:eol-style=CRLF
*.dsw = svn:eol-style=CRLF
*.sh = svn:eol-style=native;svn:executable
*.txt = svn:eol-style=native;svn:keywords=Author Date Id Rev URL;
*.png = svn:mime-type=image/png
*.jpg = svn:mime-type=image/jpeg
*.xcuserstate = svn:mime-type=text/X-xcode
*.xcuserdatad = svn:mime-type=text/X-xcode
*.xcbkptlist = svn:mime-type=text/X-xcode
*.xcscheme  = svn:mime-type=text/X-xcode
*.xcuserdatad = svn:mime-type=text/X-xcode
*.xccheckout = svn:mime-type=text/X-xcode
*.xcscmblueprint = svn:mime-type=text/X-xcode
Makefile = svn:eol-style=native

4, 保存关闭config文件,然后重启SVN工具,然后你就发现,以前的哪些警告修改已经无影无踪了...
posted @ 2015-11-02 11:14  Shreker  阅读(3435)  评论(0编辑  收藏  举报