gpt4 book ai didi

svn - 如何将空目录添加到 SVN 存储库?

转载 作者:行者123 更新时间:2023-12-03 04:21:25 40 4
gpt4 key购买 nike

我已经从 SVN 存储库中查看了代码,并为其创建了几个空目录,但我无法提交它们。我们还有其他命令来提交空目录吗?

现在我正在使用下面的命令,但没有响应。

svn commit -m "Comments"

提前致谢

最佳答案

听起来像svn mkdir就是你想要的。

Create a directory with a name given by the final component of the PATH or URL. A directory specified by a working copy PATH is scheduled for addition in the working copy. A directory specified by a URL is created in the repository via an immediate commit. Multiple directory URLs are committed atomically. In both cases, all the intermediate directories must already exist unless the --parents option is used.

在工作副本中创建一个目录:

$ svn mkdir newdir
A newdir

在存储库中创建一个(这是即时提交,因此需要日志消息):

$ svn mkdir -m "Making a new dir." http://svn.red-bean.com/repos/newdir

Committed revision 26.

关于svn - 如何将空目录添加到 SVN 存储库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29705578/

40 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com