2021-10-25 07:42:31 +00:00
|
|
|
PROVIDE ACCESS (Users will have access to all repositories in the server)
|
|
|
|
-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
sudo htpasswd -m /etc/apache2/dav_svn.passwd user1
|
|
|
|
|
|
|
|
|
2021-10-25 18:38:23 +00:00
|
|
|
CREATE A NEW REPOSITORY (on the server by the administrator)
|
|
|
|
------------------------------------------------------------
|
2021-10-25 07:42:31 +00:00
|
|
|
|
|
|
|
sudo svnadmin create /var/www/svn/myrepo
|
|
|
|
sudo chown -R www-data:www-data /var/www/svn/myrepo
|
|
|
|
sudo chmod -R 775 /var/www/svn/myrepo
|
|
|
|
|
2021-10-25 18:38:23 +00:00
|
|
|
|
|
|
|
CHECKOUT A REPO (on the user local PC)
|
|
|
|
--------------------------------------
|
|
|
|
|
|
|
|
svn co https://svn.barcelli.net/svn/myrepo #checkout the whole repo
|
|
|
|
svn co https://svn.barcelli.net/svn/myrepo/trunk #checkout the trunk
|
|
|
|
svn co https://svn.barcelli.net/svn/myrepo/branches/my-branch #checkout a branch
|
|
|
|
|
|
|
|
|
|
|
|
CREATE A NEW BRANCH (on the user local PC)
|
|
|
|
------------------------------------------
|
|
|
|
|
|
|
|
svn cp https://svn.barcelli.net/svn/myrepo/trunk \
|
|
|
|
https://svn.barcelli.net/svn/branches/my-branch \
|
|
|
|
-m'Create a privante branch of /myrepo/trunk'
|
|
|
|
|
|
|
|
|
|
|
|
REFERENCES
|
|
|
|
----------
|
|
|
|
|
|
|
|
https://svnbook.red-bean.com/en/1.7/index.html #Version Control with Subversion
|
|
|
|
https://subversion.apache.org/docs/ #Subversion official documentation
|
|
|
|
|