...
Code Block |
---|
$ svnadmin create /afs/slac.stanford.edu/g/scs/net/netmon/repo/svn --fs-type fsfs |
Note that we are using fs-type fsfs
due to the fact that we are housing the repo on an AFS share.
...
Code Block |
---|
$ cd <project-path> $ svn import . file:///afs/slac.stanford.edu/g/scs/net/netmon/repo/svn/<project-name>/trunk |
This will recusively add all files within <project-path> into the SVN repositry; whereby it will be located at <project-name>
.
The use of /trunk
at the end of the path is arbitary; however, it is recommended good practise to facilitate the branching of projects.
Once a project has been initially imported into the SVN database, it is necessary to start working on a 'fresh' version (as the files in the initial import do not 'know' about the SVN). This is achieved with a SVN checkout.
SVN Command Primer
A primer on the command styles to use while working with projects within SVN respositories can be found here.