本文介绍了仅提交对 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 根目录的属性更改,而不是文件
发布评论