忽略 SVN 提交中的一些文件 [英] Ignore some files from SVN commit

查看:32
本文介绍了忽略 SVN 提交中的一些文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

必须从 svn 中删除日志和 schema.rb,因为它依赖于机器.更新后我的架构没有迁移,因为不同机器上的架构修订具有不同的顺序.

Have to remove the logs and schema.rb from the svn as that is machine dependent.My schema is not migrating after the update as the schema revision on different machine is of different order.

推荐答案

这是通过添加 svn:ignore 属性完成的.CD 到您的文件所在的位置并尝试以下命令:

This is done with adding svn:ignore property. CD to where your files are located and try the following command:

svn propset svn:ignore schema.rb .

注意命令末尾的点.

检查文件是否被忽略:

svn status --no-ignore

然后提交.

这篇关于忽略 SVN 提交中的一些文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆