- On both server and client, install Subversion:
sudo apt-get install subversion
- On the server (setting up Subversion to be accessed via SSH):
- Make a directory for the repositories to sit:
mkdir $SVN_DIR
Typically, use /home/$USER/svn as $SVN_DIR. - Create a repository:
svnadmin create $SVN_DIR/$PROJECT
where $PROJECT is your project name - Turn off anonymous access:
nano $SVN_DIR/$PROJECT/conf/svnserve.conf
Add the following lines:[general] #section heading
anon-access = none # turn off anonymous access - (optional) Import existing content to the repository:
svn import /path/to/original/content/ file://$SVN_DIR/$PROJECT[/deeper]
- Make a directory for the repositories to sit:
- On the client:
- Initial checkout:
svn checkout svn+ssh://$SVN_SERVER/$SVN_DIR/$PROJECT[/deeper/]
- Subsequent updates, commits, etc.:
svn update/commit/add/remove/rename/revert [filenames]
- Initial checkout:
Thursday, January 29, 2009
Subversion (version control system)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment