SVN

General

General commands:

svn co URL - checkout or pull changes from remote repo

svn status /path_to_code - check status of the local
svn add /path_to_code/<changes> - add new data to local repo
svn ci -m "<msg>" /path_to_code/<changes> - upload changes to remote repo
svn update - fetch all changes
svn diff /path_to_code - show changes
svn log -l1 /path_to_code - print last log from revision

Editing multiple files at the same time

Edit three files, add them to a changelist, then commit only files in that changelist:

$ svn changelist|cl issue1729 foo.c bar.c baz.c
Path 'foo.c' is now a member of changelist 'issue1729'.
Path 'bar.c' is now a member of changelist 'issue1729'.
Path 'baz.c' is now a member of changelist 'issue1729'.

check status

$ svn status
A       someotherfile.c
A       test/sometest.c

--- Changelist 'issue1729':
A       foo.c
A       bar.c
A       baz.c

commit changes

$ svn commit --changelist issue1729 -m "Fixing Issue 1729."
Adding         bar.c
Adding         baz.c
Adding         foo.c
Transmitting file data ...
Committed revision 2.

check status

$ svn status
A       someotherfile.c
A       test/sometest.c

REFERENCES