svn设置提交时排除

项目代码中有些文件,确实是需要纳入svn管理,但是却本地人手一份不一样的,又不能提交,如:jtester.properties(里面要配置源码绝对路径)

Windows TortoiseSVN 可以可视化设置,这个大家应该都会。

但是逐渐迁入linux了,这个命令需要研究下了,这是研究结果:

# 查看
svn st --changelist ignore-on-commit
# 增加
svn cl ignore-on-commit coreservice.commontest/src/main/resources/jtester.properties
# 删除
svn cl --remove coreservice.commontest/src/main/resources/jtester.properties

再svn st察看状态:

[jot@jot-200-170 core]$ svn st
? setup/env-install/META-INF/autoconf/conf/auto-config.xml.log
M coreservice.war/src/main/resources/META-INF/autoconf/conf/log4j.xml.vm
M coreservice.war/src/main/resources/META-INF/autoconf/conf/auto-config.xml
 
--- Changelist 'ignore-on-commit':
M coreservice.commontest/src/main/resources/jtester.properties

无觅相关文章插件,快速提升流量

发表评论


注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">