Subversion Tips

From KaminskiWiki
Jump to: navigation, search

Creating A Repository and Importing

This works for my configuration. Your configuration will vary.

  • svnadmin create /var/lib/svn/projectname
  • chown -R www-data:www-data /var/lib/svn/projectname/
  • chmod -R o+rws /var/lib/svn/projectname/
  • svn mkdir -m 'layout creation' file:///var/lib/svn/projectname/trunk file:///var/lib/svn/projectname/tags file:///var/lib/svn/projectname/branches
  • svn -m "import to svn" import . https://dev.example.com/svn/projectname/trunk

Or instead of the last line above, you can make a new, blank project directory:

  • svn co https://dev.example.com/svn/projectname/trunk projectdir
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox