在不更新整个文件夹的情况下将新文件添加到 subversion [英] getting new file added to subversion without updating whole folder

查看:33
本文介绍了在不更新整个文件夹的情况下将新文件添加到 subversion的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要做的是能够将一个文件添加到我的文件夹中,该文件夹在我本地计算机的 Subversion 源代码控制下,然后提交它.到这里没问题.在服务器上,我想使用 Subversion 获取新文件,但不必对整个文件夹进行更新"(这可能会更新一堆不相关的文件).

What I want to do is be able to add a file to my folder which is under Subversion source control in my local computer and then commit it. no problem up to here. On the server I want to get the new file using Subversion but without having to do an 'Update' to whole folder (which may update a bunch of unrelated files).

您看,如果我对现有文件进行更改 - 我会转到服务器标记该文件并执行S​​VN 更新"(使用 TortoiseSVN)但是如果我在本地计算机上添加了一个新文件,我就无法只需将其发送到服务器,而无需对整个文件夹进行SVN 更新"

You see, if I make a change to an existing file - I go to the server mark that file and do 'SVN Update' (using TortoiseSVN) but if I added a new file on my local computer I have no way of just getting it to the server without doing 'SVN Update' on the whole folder

推荐答案

您可以向 svn up 命令添加文件名,即使该文件不存在于文件夹中(只要它存在于存储库中):

You can add a filename to the svn up command even if that file doesn't exist in the folder yet (as long as it exists in the repository):

svn up newFile.txt

使用 TortoiseSVN 我认为你去检查修改"然后单击检查存储库",然后右键单击 -> 在新文件上更新".

Using TortoiseSVN I think you go to "check for modifications" then click "Check repository", then right click -> "update" on the new file.

这篇关于在不更新整个文件夹的情况下将新文件添加到 subversion的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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