subversion basic commands
Create a repository in /home/svn
$ svnadmin create --fs-type fsfs /home/svn
Import an existing project located in /soft/project into the newly created repository
$ svn import /soft/project/ file:///home/svn/project/trunk -m 'Initial import'
Make a working copy of the repository in /develop/user
$ cd /develop/user $ svn checkout file:///home/svn/project
Get information about paths in the working copy
$ cd /develop/user $ svn info
Update the repository with modifications made in the working copy
$ cd /develop/user $ svn commit -m "Commiting changes"
Discard local modifications and replace with repository’s contents
$ cd /develop/user $ svn revert . -R
Show modified files and log message of a specific revision
$ cd /develop/user $ svn -v log -r <revision_number>
Show differences made on a file between two revisions
$ cd /develop/user $ svn diff -r <revision_number1>:<revision_number2> <file_name>
Leave a Reply