I'm following this guide to install and configure a SVN Server in my development server. I've some previously projects created under /var/www/html and want those projects under SVN meaning I can use Tortoise or any other client to have this code with SCM. Which are the commands to start a new repo at /var/www/html/project1 for example? This one: svnadmin create testrepo? How I must configure Apache DAV SVN to allow HTTP access after get the repo configured and working?
1 Answer
Which are the commands to start a new repo at
/var/www/html/project1
for example? This one: svnadmin create testrepo?
# cd /var/www/html
# svnadmin create testrepo
I've some previously projects created under
/var/www/html
and want those projects under SVN
# cd /var/www/html
# svn import ./foo -m "importing the foo project" file:///var/www/html/testrepo
How I must configure Apache DAV SVN to allow HTTP access after get the repo configured and working?
<Location /svn>
DAV svn
SVNPath /var/www/html/testrepo
AuthType Basic
AuthName "Subversion repositories"
AuthUserFile /etc/svn-auth-users
Require valid-user
</Location>
-
Thx for your reply but still getting doubts. First I've a PHP project located at
/var/www/html/project1
then I initialize the SVN repo at/var/www/html/svn
running the commandcd /var/www/htmlsvn && svnadmin create cmvrepo
which are the next steps?svn import ./foo - m "importing the foo project" file:///var/www/html/project1
? (I assume this is any name which are the right word to write there) Sep 10, 2012 at 20:17 -
svn import /var/www/html/project1 file:///var/www/html/svn/cmvrepo -m "importing the project1"
.– quantaSep 10, 2012 at 20:25 -