Notes for installing and using Linux SVN
Www.svn8.com 20:36:10 Source: Author:
Comments: 0 Click:
1053
SVN introduction, download, and installation
SVN Introduction
The goal of the Subversion project is to build a version control system that is a compelling replacement for CVS in the open source community. the software is released under an Apache/BSD-style open source license.
SVN is a version control software, similar to CVS, but SVN is a bit open-source, and the version control capability of SVN is much stronger for CVs.
SVN can be used for project management and version synchronization, but it is very powerful :)
Download: http://subversion.tigris.org
Current stable version svn1.32http: // subversion.tigris.org/downloads/subversion-1.3.2.tar.gz
Installation:
Unzip: #: Tar zxvf subversion-1.3.2.tar.gz
Enter./configure, make, and make install in sequence to complete compilation and installation.
Enable the svn service: svnserve-d
Check whether the service is enabled: netstat-ntlp. If the port 3690 is enabled, it indicates that SVN is enabled.
Official Use:
First, we need to build a SVN project. Most people think that only one file is needed to create a project. Before I use SVN for the first time, I think that folders need to be created to create a project in SVN.
Run the "svnadmin create project_name" command to create a project.
After the creation is complete, project_name is a folder and you can see a conf folder. Go to the folder and you will see two files (if there is no passwd file, you can create it with VI). Edit svnserve. conf and set anon-access = read, auth_access = write
Also, remove the comments of password-DB = passwd and [general.
VI passwd file. If it is a new file, enter:
[User]
Your_name = your_password
Your_name is your username and your_password is your password. This is a necessary pass to access SVN.
Now we have finished the preparation. We can use it below.
First find your projectSource codeFolder, use the following command:
CD your project
In your project dircetory
Use: SVN Co/home/project_name -- username = your_name -- Password = your_password
Now you can use the following command on the client to obtain the desired project source.CodeFile
SVN Co SVN: // home/project_name -- username = your_name -- Password = your_password
Add the added SVN file to the svn database:
SVN Add/home/your_project/*. * -- username = your_name -- Password = your_password
Submit the file:
SVN commit/home/your_project/*. * -- username = your_name -- Password = your_password
Update file: SVN update/home/your_project/*. * -- username = your_name -- Password = your_password
Of course, you can edit a script file to complete all operations at one time:
VI svnupdate. Sh
#! /Bin/sh
SVN Add/home/your_project/*. * -- username = your_name -- Password = your_password
SVN commit/home/your_project/*. * -- username = your_name -- Password = your_password
SVN update/home/your_project/*. * -- username = your_name -- Password = your_password
Chmod + x svnupdate. Sh
Finish