FreeKB - Import files into a repository in Subversion (svn import)
Import files into a repository in Subversion (svn import)

Home > Search


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 http://example.com/svn/repo.

 

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 http://example.com/svn/repo/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 c0279 in the box below so that we can be sure you are a human.




Comments