如何使用 Subversion 和 TortoiseSVN 设置存储库
我在房间的服务器上设置了 Subversion,在客户端计算机上安装了 TortoiseSVN,并正确配置了 Subversion 服务。我不知道如何设置正确的 URL 来连接到服务器,因为服务器没有 URL 或附加的任何内容。如果我打开 TortoiseSVN 存储库浏览器并输入 svn://nameofServer
那么连接就可以工作,但我不知道如何设置存储库来连接到 svn:/ 之类的东西/nameOfServer/TestProject
。
我还想知道如何附加密码来查看和签出文件。
I have Subversion set up on a server in my room and I have TortoiseSVN installed on a client computer and have correctly configured the Subversion service. I don't know how to set up the correct URL to connect to the server because the server doesn't have a URL or anything attached. If i open up the TortoiseSVN repo browser and type in svn://nameofServer
then the connection works but I don't know how to set up a repository to connect to something like svn://nameOfServer/TestProject
.
Also I would like to know how to have a password attached to viewing the files and checking them out.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在您的情况下,使存储库通过网络可用的最佳选择可能是 svnserve。
编辑:我举个例子。如果您已在
d:\svnrepositories\foo
创建了存储库,并且运行以下命令:那么您将能够访问位于
svn://host/foo
的存储库,其中host
是服务器的主机名或 IP 地址。In your case, the best option to make the repository available over the network is probably svnserve.
edit: I'll give an example. If you have created a repository at
d:\svnrepositories\foo
, and you run this:then you will be able to reach your repository at
svn://host/foo
, wherehost
is the host name or IP address of your server.要创建存储库,您需要运行命令
svnadmin create;
在服务器上。编辑:
您创建的存储库必须位于存储库根目录下。当您使用 svn://... 访问存储库时,我假设您正在运行 svnserve 来托管您的存储库。
查看 svnserve 的文档(“svnserve as daemon”部分) ) 在那里您可以了解如何设置存储库根目录。如果服务器运行的是 Linux,您可以键入
以了解 svnserve 如何启动以及存储库根目录所在的位置。
To create a repository you need to run the command
svnadmin create <name>
on the server.Edit:
The repository you create must be under the repository root. As you access your repository with
svn://...
I assume you are running svnserve to host your repositories.Have a look at the documentation for svnserve (section "svnserve as daemon") there you can find out how the repository root is set. If the server is running Linux you can type
to find out how svnserve is started and where the reposiory root is located.