svnadmin create a new empty project repository in subversion (svn) in Linux | About Publisher

svnadmin create a new empty project repository in subversion (svn) in Linux

If you have installed subversion (used for version control) and looking for creating a repository inside that, you are at the right place.

Command

Command to create new project repositories inside subversion is svnadmin create.

svnadmin create repoPath
- repoPath has to be a path to a folder, if that folder does not exists; new folder will be created.

Consider following examples


svnadmin create /usr/local/svn/clients/MyProject

svnadmin create .

First command will create a repository inside "/usr/local/svn/clients/MyProject" while the second command creates a repository in your current directory. You can pick either of the above commands.

After creating the repository, you must alter access controls. For that open conf/svnserver.conf found inside newly created repository folder.

Common values to alter are;
anon-access
- access control for non authenticated users, so better to set it to none (anon-access = none)
auth-access
- access control for authenticated users, this must be set it to "read" or "write" (auth-access = read)
Share this article please, on :
Share on fb Tweet Share on G+

0 Response to "svnadmin create a new empty project repository in subversion (svn) in Linux"

Post a Comment