仅提交对 repo 根目录的属性更改,而不是文件 [英] Commit only property changes on root of repo, not files

查看:34
本文介绍了仅提交对 repo 根目录的属性更改,而不是文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 SVN 存储库,其中包含对文件的未提交更改.根文件夹上的 svn:externals 属性也发生了变化.

I have an SVN repository with uncommitted changes to files. There is also a change in the svn:externals property on the root folder.

如何提交属性更改,而不提交对文件本身的更改?

How do I commit the property changes, WITHOUT committing the changes to the files themselves?

推荐答案

为了仅提交在命令行中指定的显式路径,请使用 --depth empty 选项,例如在具有新修改的 externals 属性的目录中:

In order to commit only the explicit paths specified on the command line use the --depth empty option e.g. in the directory with the newly modified externals property:

$svn commit --depth empty . -m "Modify svn externals definition only."

这篇关于仅提交对 repo 根目录的属性更改,而不是文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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