如何将项目添加到 svn 服务器? [英] How to add a project to svn server?

查看:95
本文介绍了如何将项目添加到 svn 服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须将一个项目添加到 SVN 服务器存储库中,如果能得到一些链接或关于如何做到这一点的帮助,我将不胜感激.

SVN 存储库的 URL 是 https://192.168.1.4:448/svn/BDRAsigViata/.该项目位于桌面上.路径是/Users/name/Desktop项目名称为BDRAsigurariViata v1.0.zip.

我尝试以这种方式添加项目

 svn import/Users/name/Desktop/BDRAsigurariViata v1.0.zip https://192.168.1.4:448/svn/BDRAsigViata

但它不起作用.为了能够做到这一点,我是否也应该遵循其他步骤?

我收到错误:

<块引用>

 svn: E205000: 尝试svn help"了解更多信息svn: E205000: 导入命令的参数太多

解决方案

[Tedious mode ON] 您是否正在尝试将 ZIP 存档添加到版本控制存储库?Apache Subversion 是一个版本控制系统,不是简单的文件存储或Dropbox!它旨在存储和管理您的代码.由于您使用术语项目",我假设您只是压缩了源代码文件并希望将它们作为存档提交.这不是它的工作原理.[关闭乏味模式]

尽管如此,您需要的命令是

svn import "C:\Users\name\Desktop\BCRAsigurariViata v1.0.zip" "https://192.168.1.4:448/svn/BCRAsigViata/BCRAsigurariViata v1.0.zip" -m "提交消息"

由于您是 Apache Subversion 和 VisualSVN 服务器的新手,您绝对应该留出一些时间阅读SVNBook.强烈建议 Apache Subversion 新手用户使用这些介绍性主题:

作为 Windows 用户,我强烈建议您考虑使用 TortoiseSVN 客户端(它是 手册 除了上述文档).

I have to add a project to the SVN server repository and I would be thankful to get some links or little help on how to do that.

The URL to the SVN repository is https://192.168.1.4:448/svn/BDRAsigViata/. The project is located on the desktop. The path is /Users/name/Desktop and the name of the project is BDRAsigurariViata v1.0.zip.

I tried to add the project this way

  svn import /Users/name/Desktop/BDRAsigurariViata v1.0.zip  https://192.168.1.4:448/svn/BDRAsigViata

But it isn't working. Am I supposed to follow other steps too, in order to be able to do that?

I get the error:

   svn: E205000: Try 'svn help' for more info
   svn: E205000: Too many arguments to import command

解决方案

[Tedious mode ON] Are you trying to add a ZIP archive to a version control repository? Apache Subversion is a version control system, not a simple file storage or Dropbox! It's designed to store and manage your code. Since you use the term "project", I assume that you simply zipped your source code files and wanted to commit them as the archive. That's not how it works. [Tedious mode OFF]

Nevertheless, the command you need is

svn import "C:\Users\name\Desktop\BCRAsigurariViata v1.0.zip" "https://192.168.1.4:448/svn/BCRAsigViata/BCRAsigurariViata v1.0.zip" -m "Commit Message"

Since you are new to Apache Subversion and VisualSVN Server you definitely should set aside some time to read SVNBook. These introductory topics are highly recommended for novice Apache Subversion users:

As a Windows user, I strongly recommend you to consider TortoiseSVN client (and it's manual in addition to the above docs).

这篇关于如何将项目添加到 svn 服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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