将新文件添加到 subversion 而不更新整个文件夹
我想要做的是能够将一个文件添加到本地计算机中 Subversion 源代码控制下的文件夹中,然后提交它。 到这里没问题。 在服务器上,我想使用 Subversion 获取新文件,但不必对整个文件夹进行“更新”(这可能会更新一堆不相关的文件)。
你看,如果我对现有文件进行更改 - 我会转到服务器标记该文件并执行“SVN 更新”(使用 TortoiseSVN),但如果我在本地计算机上添加新文件,我无法获取它到服务器而不对整个文件夹执行“SVN 更新”
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).
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
即使文件夹中尚不存在该文件(只要存储库中存在该文件),您也可以将文件名添加到 svn up 命令中:
编辑:使用 TortoiseSVN 我认为< /em> 您转到“检查修改”,然后单击“检查存储库”,然后右键单击 -> “更新”新文件。
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):Edit: Using TortoiseSVN I think you go to "check for modifications" then click "Check repository", then right click -> "update" on the new file.