使用TortoiseSVN,有没有办法在不首先检查工作副本的情况下将文件提交到存储库?

发布于 2025-01-14 01:15:07 字数 132 浏览 3 评论 0原文

我有一个新的文本文件,我想提交到存储库中的某个文件夹。然而,按照我的理解,我必须首先签出该文件夹(创建工作副本),然后才能提交这个新的文本文件。

有什么方法可以绕过检查文件夹的步骤,因为该文件夹中还有其他文件,这些文件的文件大小相当大。

I have a new text file I want to commit to a certain folder in a repo. However the way I understand it, I have to first checkout (create a working copy) of that folder, and then only can I commit this new text file.

Is there any way I can bypass the step of checking out the folder, since the folder has other files in it which are pretty huge in file size.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

以往的大感动 2025-01-21 01:15:07

感谢 Siddharth Kaul 指出了另一个有帮助的答案!

对于任何在这里偶然发现并想要答案的人,您可以执行

svn checkout [url] --depth empty

以下操作来签出没有任何文件的文件夹

Thanks to Siddharth Kaul for pointing to another answer which helped!

For anyone stumbling on here and wants an answer, you can do

svn checkout [url] --depth empty

which will checkout the folder without any of the files

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文