• 关于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工具,然后你就发现,以前的哪些警告修改已经无影无踪了...
  • 相关阅读:
    列举⼀下 HTTP 中关于 "资源缓存" 的头部指令 (Head) 有哪些 ? 并简要介绍⼀下设置的规则 ?
    从输入URL到页面渲染完成
    git删除远程仓库分支
    @font-face的format属性
    【React】的行内样式不支持rgb
    前端面试题
    常见元素居中的五种方法
    数组存储表格数据
    java.util.Arrays类
    for-each循环
  • 原文地址:https://www.cnblogs.com/Shreker/p/4929631.html
Copyright © 2020-2023  润新知