Difference between revisions of "Subversion for Coders"
Jump to navigation
Jump to search
(call "svn mkdir" instead of separate mkdir command.) |
Stillflame (talk | contribs) (updated to new svn server) |
||
Line 1: | Line 1: | ||
To check out a project initially, this is the command you probably want to use: | To check out a project initially, this is the command you probably want to use: | ||
− | svn co svn+ssh://svn.freegeek.org/ | + | svn co svn+ssh://svn.freegeek.org/svn/PROJECT_NAME/trunk PROJECT_NAME |
+ | |||
+ | or anonymously: | ||
+ | |||
+ | svn co http://svn.freegeek.org/svn/PROJECT_NAME/trunk PROJECT_NAME | ||
To create a new project in subversion, login to the subversion server (svn.freegeek.org) and do: | To create a new project in subversion, login to the subversion server (svn.freegeek.org) and do: | ||
Line 8: | Line 12: | ||
svnadmin create --fs-type fsfs PROJECT_NAME | svnadmin create --fs-type fsfs PROJECT_NAME | ||
− | This creates a project without any branch, tag or trunk directories, | + | This creates a project without any branch, tag or trunk directories. These are, however, 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 | svn co svn+ssh://svn.freegeek.org/var/lib/svn/PROJECT_NAME | ||
Line 16: | Line 20: | ||
Back to [[Coders]]. | Back to [[Coders]]. | ||
+ | |||
+ | ==TODO== | ||
+ | * trac setup | ||
+ | * user account setup | ||
[[Category: Coders]] | [[Category: Coders]] |
Revision as of 20:57, 8 November 2005
To check out a project initially, this is the command you probably want to use:
svn co svn+ssh://svn.freegeek.org/svn/PROJECT_NAME/trunk PROJECT_NAME
or anonymously:
svn co http://svn.freegeek.org/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. These are, however, 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 svn mkdir trunk branches tags svn commit -m 'set up control directories'
Back to Coders.
TODO
- trac setup
- user account setup