Bootstrap FreeKB - Subversion (Version Control) - svn import command
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 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.




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


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