Subversion for Coders

From FreekiWiki
Revision as of 20:36, 22 June 2005 by 192.168.3.13 (talk) (new project instructions)
Jump to navigation Jump to search

To check out a project initially, this is the command you probably want to use:

svn co svn+ssh://svn.freegeek.org/var/lib/svn/PROJECT_NAME/trunk PROJECT_NAME

To create a new project in subversion, login to the subversion server (svn.freegeek.org) and do:

cd /var/lib/svn
svnadmin create --fs-type fsfs PROJECT_NAME

This creates a project without any branch, tag or trunk directories, which is the recommended way to deal with branching and tagging in subversion. It is therefore recommended you then check out the project a different way and do:

svn co svn+ssh://svn.freegeek.org/var/lib/svn/PROJECT_NAME
cd PROJECT_NAME
mkdir trunk branches tags
svn add trunk branches tags
svn commit -m 'set up control directories'

Back to Coders.