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 revision Previous revision
Last revision Both sides next revision
svn [2016/05/21 18:29]
javapimp
svn [2016/05/21 20:09]
javapimp
Line 13: Line 13:
 <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.txt ยท Last modified: 2016/05/21 20:10 by javapimp