SVN客户端忽略无关文件
修改前请先备份文件 ~/.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工具,然后你就发现,以前的哪些警告修改已经无影无踪了...
===========================================================================
sourceTree 配置地址见https://www.jianshu.com/p/e61111f69a8f
*~
.DS_Store
*.xcuserstate
*.xcworkspace
xcuserdata
*.lock
Pods
posted on 2016-01-20 15:15 🌞Bob 阅读(314) 评论(0) 编辑 收藏 举报