Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add a project to svn server?

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
like image 914
uzzi Avatar asked Dec 06 '22 10:12

uzzi


1 Answers

[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:

  • What Is Subversion?
  • Fundamental Concepts
  • Basic Usage

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

like image 148
bahrep Avatar answered Jan 03 '23 12:01

bahrep