尝试设置乌龟 svn - 新手问题 [英] trying to set up tortoise svn - newbie question

查看:77
本文介绍了尝试设置乌龟 svn - 新手问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的 Windows 计算机上设置一个 svn 以跟踪版本.我已经下载了 tortoise svn,但我很困惑如何安装.我找不到一个很好的简单答案来解决我的问题,所有的手册都相当复杂,所以请不要告诉我 RTFM.

I am trying to set up an svn on my windows computer to keep track of versions. i've downloaded tortoise svn, but am confused how to install. i can't find a good simple answer for my problem, all the manuals are fairly complicated, so please don't tell me RTFM.

我的问题是我在 C:\svn 设置了一个存储库(在这里使用创建存储库).然后我右键单击包含我的文件的文件夹并说导入.我选择存储库file://C:\svn"然后它给我一个错误说无法打开存储库"

my problem is i set up a repository at C:\svn (using create repository here). Then I right click a folder containing my files and say import. I choose the repository "file://C:\svn" and then it gives me an errors saying "unable to open repository"

我该怎么办?

推荐答案

从头开始:

  • 创建目录 C:\svn - 这将是您存储存储库的位置 - 每个项目一个

  • create the directory C:\svn - this will be where you store your repositories - one per project

使用资源管理器,在该目录中创建一个子目录,我们将其命名为myproj"

using explorer, create a subdirector in that directory, we'll call it it "myproj"

使用资源管理器打开该目录 - 您应该看到一个空的资源管理器窗格

using explorer open that directory - you should be looking at an empty explorer pane

右键单击空白窗格,然后从 Tortoise 菜单中选择在此处创建存储库".这会在myproj"目录中创建一个新的空存储库.

right click on the empty pane, and from the Tortoise menu choose "create repository here". This creates a new empty repository in the "myproj" directory.

上一级并右键单击myproj".从 Totrtoise 菜单中选择repo browser".我们将使用它来创建 SVN 喜欢在存储库中查找的子目录

go up one level and right click on "myproj". From the Totrtoise menu select the "repo browser". We are going to use this to create the subdirectories that SVN likes to find in a repository

右键单击所显示(空)树的根目录,然后从菜单中选择创建文件夹".然后输入trunk"(不带引号)并单击确定".如果您愿意,可以使用相同的过程在与trunk"相同的级别创建名为tags"和branches"的目录.

right click on the root of the displayed (empty) tree and choose "Create folder" from the menu. Then enter "trunk" (without quotes) and click OK. If you like, use the same process to create directories called "tags" and "branches" at the same level as "trunk".

选择新创建的trunk"文件夹并制作一个
注意出现在存储库管理器顶部的文件 URL - 实际上,将其复制到剪贴板 - 它看起来像file:///C:/svn/myproj/trunk"

select the newly created "trunk" folder and make a
note of the file URL that appears at the top of the repo manager - in fact, copy it to the clipboard - it will look something like "file:///C:/svn/myproj/trunk"

现在导航到您想要在其中进行工作的地方 -不是包含您已经创建的源文件的目录,右键单击并从 Tortoise 菜单中选择Checkout".输入您在上一步中获得的文件 URL,然后单击确定".这将签出一个空项目.

now navigate to somewhere you want to do your work in - NOT the directory containing the source files you have already created, Right click and choose "Checkout" from the Tortoise menu. Enter the file URL you got in the previous step and click OK. This will checkout an empty prpject.

现在将您一直在处理的所有现有文件和目录复制到您刚刚通过 checkout 创建的新myproj"项目文件夹(不是存储库中的文件夹)

now copy all the existing files and directories that you have been working on into the new "myproj" project folder you just created via checkout (not the one in the repository)

在资源管理器中,右键单击myproj"文件夹并从 Tortoise 菜单中选择提交".在出现的对话框中,选中底部的全选"框,然后单击确定".所有文件和目录将被添加到主干一切顺利 - 您对myproj"目录所做的任何更改都可以通过在资源管理器中选择目录、右键单击并从 Tortoise 菜单中选择提交"来提交.

in explorer, right click on the "myproj" folder and choose "commit" from the Tortoise menu. In the dialog that appears, check the "select all" box at the bottom and click OK. All the files and directories willbe added to the trunk and you are good to go - any changes you make to the "myproj" directory can be committed by selecting the directory in explorer, right clicking, and selecting "Commit" from the Tortoise menu.

这篇关于尝试设置乌龟 svn - 新手问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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