wiki:Subversion

Subversion Info

Checkout from subversion with:

svn co svn+ssh://bcf2.uthscsa.edu/ultrascan3/trunk ultrascan3

or if you just want the files once:

svn export svn://bcf2.uthscsa.edu/ultrascan3/trunk ultrascan3

change the final 'ultrascan' above to any directory name you desire. It will be created in the current directory.

To pass a different user to an ssh access to svn, use

svn co svn+ssh://username@bcf2.uthscsa.edu/ultrascan3/trunk ultrascan3

To pass separate parameters to ssh, such as compression, an environment variable like:

SVN_SSH="ssh -C" svn co svn+ssh://username@bcf2.uthscsa.edu/ultrascan3/trunk [PATH]

can be used. Another alternative is to set up a custom user and parameters in your $HOME/.ssh/config file. See the man page for ssh_config for more details.

If you use:

svn co svn://bcf2.uthscsa.edu/ultrascan3/trunk ultrascan3

you will be able to get updates with:

svn update

but you will not be able to check anything into the system.

When you are creating a new file or directory, you need to tell the SVN server about it.

svn add <filename(s) or directory>

When adding a file to svn, be sure to set attributes (on text files):

svn propset svn:keywords "LastChangedDate Author" <filename>

For non-ASCII files, set the appropriate MIME type. E.g. for png files:

svn propset svn:mime-type image/png <filename>

For arbitrary binary data:

svn propset svn:mime-type application/octet-stream <filename>

Other svn commands include "delete", "status", "diff", "move", and "commit". For more details on subversion see the on-line book at http://svnbook.red-bean.com/en/1.4/svn-book.html

Last modified 5 years ago Last modified on Feb 27, 2014 8:53:10 PM