This cheatsheet is a quick reference for using SVN,
CREATE A REPOSITORY ON LINUX: SVNADMIN CREATE
To store projects in Subversion/SVN, first you must create a repository.
svnadmin create /svnrepos
ADD A PROJECT TO REPOSITORY – SVN IMPORT
svn import -m “import project” /home/xxxx/public_html file:///svnrepos/
STARTING SVN SERVER DAEMON- SVNSERVE
svnserve -d
This would start the SVN daemon on port 3690. To listen to port other than 3690
svnserve -d –listen-port=8080
CHECKING OUT A PROJECT – SVN CO
svn co svn:///svnrepos/ svn co stands for svn checkout.
CHECKING FOR CHANGES – SVN STATUS
To see what files you have changed or added to your checked out work, use svn status:
svn status
ADDING NEW FILES – SVN ADD
svn add
SVN ADD RECURSIVELY
svn status | grep “^\?” | awk ‘{print $2}’ | xargs svn add
SVN DELETE – SVN DELETE
svn delete
SVN UPDATE – SVN UPDATE
svn update
SVN Commit – svn commmit
svn commit
You can also use,
svn ci
SVN TAGGING PROJECT
svn copy -m “Tagging the 1.0 release of the project” svn://server-name/svnrepos/project/trunk svn://server-name/svnrepos/project/tags/1.0
excluding file types