Svn notes

From OriWiki

Jump to: navigation, search

Contents

svn st switches

print revision information.. who made the last change before you..

svn st -v

print only really important information

svn st -q

seems to be useful:

svn st -qu

Frequently used

svn help 
svn add <file> 
svn commit (ci) <file>
svn info 
svn status (st) 
svn list (ls) <svn url>
svn mkdir <dir name>
svn update

Creating a local repository

the following command creates the repository named my_svn_repository which appears as a directory in /home/ori/

svnadmin create /home/ori/my_svn_repository/

then you can create a working directory named "work" and checkout the repository into it by:

svn co file:///home/ori/ori_repository/ work

Branching

 svn cp file:///home/ori/my_svn_repository1/trunk file:///home/ori/my_svn_repository1/branches/branch1 -m "creating a test branch"

revet a whole directory

when inside the directory

svn revert -R .

Misc

svnadmin create /usr/local/svn/newrepos
svn import mytree file:///usr/local/svn/newrepos/some/project -m "Initial import"
svn list file:///usr/local/svn/newrepos/some/project
$ svn list file:///usr/local/svn/repos
/trunk
/branches
/tags
$ svn checkout http://svn.collab.net/repos/svn/trunk
Personal tools