使用 TortoiseSVN 将本地文件目录导入 SVN 存储库 [英] Importing local file dir into SVN repo with TortoiseSVN

查看:37
本文介绍了使用 TortoiseSVN 将本地文件目录导入 SVN 存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我第一次尝试使用任何 SCM,请耐心等待.

This is my first time trying to use any SCM so please bear with me.

按照 SVN 手册,我在一个空目录中创建了一个 repo.一切都很好.

Following the SVN manual, I create a repo in an empty directory. All good.

然后我尝试导入现有的项目文件夹.我正在使用 shell 命令,但它是这样的:

Then I try to import an existing project folder. I'm using the shell command but it's like this:

Import C:\Users\aaa\SVN\proj to file:///C:/proj_2
Unable to open an ra_local session to URL
Unable to open repository 'file:///C:/proj_2'
Finished!

我可能做错了一些事情.谢谢.

I'm probably doing something very incorrectly. Thanks.

推荐答案

这是一个快速而肮脏的技巧,但您可以使用 TurtoiseSVN,浏览本地存储库,创建一个远程文件夹并将其检出到您要导入的目录中.

This is a quick and dirty trick but you can use TurtoiseSVN, browse the local repository, create a remote folder and check it out into the directory you wan to import.

之后,您只需选择本地文件夹,右键单击并选择签入"即可提交您的本地文件.

After that, you only have to select the local folder, right-click and select "check-in" to commit your local files.

此外,使用 TurtoiseSVN 的存储库浏览器,您将能够看到存储库的真实位置.

Additionally with TurtoiseSVN's repo-browser you will be able to see the real location of your repository.

这篇关于使用 TortoiseSVN 将本地文件目录导入 SVN 存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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