Recent Changes - Search:

Resources

TM tutorials


Internal


edit SideBar

SVNTutorial

SVN Basics:

I'll talk about the terminal usage, but the same ideas apply to others (same terminology). To use svn on a Linux/Unix/Mac terminal (generally installed by default), use the command: svn.

Running: svn help can be a good starting place. There are various other guides available on the web (most more complete).

TortoiseSVN is a good GUI based program to use as an alternative on Windows.

Checkout

Initial command, only used once per computer per project. This sets up the repository copy on your own computer - it's initial setup.
Shortform: co
Example: svn co svn://some/repository

Add

Used to add new files and folders to the repository (you can have files in your personal svn folder that are not linked on the actual svn repository).
Example: svn add somefolder/newfile

Delete

Opposite of add - note that one of the advantages of svn is that if you delete something by mistake, this can be undone.
Shortforms: rm del
Example: svn del somefilenolongerneeded

Update

Use this command to update your repository version to the latest version (i.e., download other people's commits)
Shortform: up
Example: svn up (will update from current folder recursively)

Commit

Use this to commit your changes to the various files to the main server (so others can update). Will commit and file edits, and file adds and deletes you've done.
Shortform: ci
Example: svn ci (will commit from current folder recursively)
Note: You may need to use the -m "message text" flag with this one. The "message text" is just a textual descriptions of the files changes you've made - so others know what you've done!

Add Repository as Admin

su svnadmin
svnadmin create /home/svn/repositories/<newrepo>
su; cd /home/svn/repositories
add usergroup for svn users of <newrepo>; ensure all users are also a part of the allsvnusers group; ensure svnadmin a part of new svn group
chgrp -R newreposvngroup <newrepo>
Checkout repository
ensure all access to <newrepo> via svn+ssh:// protocol (including from internally on gnode)
svn add <folder/file>
svn commit\\

Edit - History - Print - Recent Changes - Search
Page last modified on April 09, 2013 at 11:20