Import a directory into SVN (this will not do checkout for you! You must do that into another directory):
$ svn import -m "message" dir_to_import http://server.name/svn_repository_path/new_module_name
Checkout a directory from SVN:
$ svn checkout http://server.name/svn_repository_path/module_name
Update local copy from server:
Update your copy with server changes
$ svn update
Discard your changes
$ svn revert
Commit changes to server:
$ svn commit [files] [-m 'message']
View what's changes/uncommited:
$ svn status
Do file operations on your local copy, which on commit will be applied to server:
add new file:
$ svn add file
move a file from A to B
$ svn mv old_filepos new_filepos
copy a file
$ svn copy src_filepos dest_filepos
remove a file
$ svn rm file
Set the ignore filters on a directory:
$ svn propedit svn:ignore dir_name
This will open the $SVN_EDITOR, where you can enter patterns for ignoring files, one per line. Such as "*" for all files in that directory (but not subdirectories), or "path/to/file" to ignore the file named dir_name/path/to/file.
Note: this doesn't seem to work for subdirs. If you want to specify ignore filters for them, then do so directly, and not from a parent-dir.
Back to Tech Journal