1. 配置 SVN 默认编辑器
VIM ~/.bash_profile
最后一行加上:
export SVN_EDITOR=VIM # 定义 SVN editor 为 VIM 编辑
2. 让配置生效
source ~/.bash_profile
3. 设置忽略文件:
先切换到项目目录, 如 test(想忽略 / product 目录下的 test.PHP 文件. 前提是 / product 目录必须在 SVN 版本控制下, 而 test.PHP 文件不在 SVN 版本控制.)
输入:
SVN propedit SVN:ignore . #'.'号需加上, 代表当前目录;
输入需要忽略的文件 / 文件夹
如:
- conf/db.PHP #代表忽略 conf 文件下 db.PHP 这个文件
- uploads #代表忽略 uploads 这个文件夹
以上忽略的文件都是该项目目录的相对路径!
4.SVN st 查看 test 的目录状态
[root@**** 项目路径]# SVN st
- ? log
- ? runtime
- ? test~ + C vendor
- > local edit, incoming delete upon update
[?: 不在 SVN 的控制中; M: 内容被修改; C: 发生冲突; A: 预定加入到版本库; K: 被锁定]
来源: http://www.bubuko.com/infodetail-2847186.html