User Tools

Site Tools


svn

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
svn [2016/05/21 18:29] javapimpsvn [2023/08/18 18:15] (current) – external edit 127.0.0.1
Line 12: Line 12:
  
 <code bash> <code bash>
-chown -R www-data:subversion repositoryname+chown -R www-data:subversion repositoryname 
 +</code> 
 + 
 +Initialize the repository with the basic directory structure. For this I use a shell script ''svninit'' that I created and put in ''/usr/bin'' with the other SVN tools. 
 + 
 +<code bash> 
 +#!/bin/bash 
 +url=http://localhost/svn 
 +svn mkdir $url/$1/trunk $url/$1/branches $url/$1/tags -m "New project $1" --parents 
 +</code> 
 + 
 +Update the ''url'' to point to your SVN installation. 
 + 
 +Run the command like this: 
 + 
 +<code bash> 
 +$ svninit repositoryname
 </code> </code>
  
 On the client, check out the new repository. I use TortoiseSVN so I created the directory, right click and select "SVN Checkout...". Select the repository "http://host/svn/repositoryname". On the client, check out the new repository. I use TortoiseSVN so I created the directory, right click and select "SVN Checkout...". Select the repository "http://host/svn/repositoryname".
  
svn.1463855390.txt.gz · Last modified: 2023/08/18 18:15 (external edit)