仅提交对 repo 根目录的属性更改,而不是文件

编程入门 行业动态 更新时间:2024-10-27 11:17:37
本文介绍了仅提交对 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 根目录的属性更改,而不是文件

本文发布于:2023-08-02 11:51:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1277578.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:根目录   而不是   属性   文件   repo

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!