Setup svn over SSH server

From Notes_Wiki
Revision as of 04:52, 13 November 2012 by Saurabh (talk | contribs) (Created page with "=Setup SVN over SSH server= To setup SVN over SSH server use following steps: #First ensure that all users who are going to use the repository are in some group. #Ensure use...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Setup SVN over SSH server

To setup SVN over SSH server use following steps:

  1. First ensure that all users who are going to use the repository are in some group.
  2. Ensure users of above group can SSH to machine
  3. Create a SVN repository folder using command:
    svnadmin create <folder_name>
    The above folder should be created in some common place such as '/opt/svn' instead of creating in users home folder.
  4. Change group owner of folder to created group using 'chgrp -R <group_name> <folder_name>'
  5. Checkout revision 0 of svn folder using:
    svn co svn+ssh://<ssh_username>@<machine_ip_or_name><SVN_repository_folder_path>
  6. Now user can work on the working copy using commands such as 'svn up' or 'svn commit' etc.