Ramprasad

/home/resources

[Powered by FreeBSD UNIX]

[Powered by Yahoo! Small Business]

Valid HTML 4.01!

Valid CSS!

Using Subversion (SVN)

Introduction

Subversion is a free software version control system. It manages files and directories, and the changes made to them, over time. Its goal is to be a mostly-compatible successor to the widely used Concurrent Versions System (CVS).

Creating repository

svnadmin create /var/svn/repos

Importing new project

svn import project file:///var/svn/repos/project -m "Initial version - project"

Checking Out

svn checkout file:///var/svn/repos/project

If remote server with an account -
svn co svn+ssh://domain\\username@hostname/repos/project

Updating

svn update

Adding file or directory

svn add filename or svn add directoryname
svn commit -m "message" filename or svn commit -m "message" directoryname

Deleting file

svn delete filename
svn commit -m "Deleted file 'filename'"

View Status

svn status

Difference

svn diff filename

Committing

svn commit -m "message" filename(s)

View Log

svn log filename


Last modified: 21/January/2009