uzzi
uzzi

Reputation: 551

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

Upvotes: 4

Views: 33253

Answers (2)

bahrep
bahrep

Reputation: 30662

[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).

Upvotes: 15

florent
florent

Reputation: 801

Your command looks strange with the backslash. The first one and the one in front of the server URL looks like they don't belong. Also I believe you need to escape the spaces in your path. (but I wouldn't put the last file, you want a directory).

I would write this command:

svn import /Users/name/Desktop https://192.168.1.4:448/svn/BCRAsigViata

except you might not want to put your whole "Desktop folder".

Upvotes: 0

Related Questions