Subversion (Version Control) - svn import command

This assumes you have Subversion installed on your local PC. These examples are based on Linux.

This assumes you have already created a repository. Let's say the repository on the server is /var/www/svn/repo, and you also also view the repository at


The svn import command is used to add files to the repository. In this example, the files below /opt/share are added to the repository.

svn import -m "adding files" /opt/share file:///var/www/svn/repo/share


Instead of importing using file, you can import using http or https just the same.

svn import -m "adding files" /opt/share


Once imported, the directory and files will be accessible.

Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter bc114 in the box below so that we can be sure you are a human.


Web design by yours truely - me, myself, and I   |   |