SVN (Subversion) is a version management tool that has risen in recent years, and SVN server has 2 modes of operation: Standalone server and Apache. There are pros and cons to each of the 2 ways. Either way, you need to use a variety of commands to implement. In this article, haohtml for us to sort out the common and infrequently used SVN commands under
[$retval-eq 0] Touch $lockfileReturn $retval}Complete2 Client connection using client 2.1 using WindowsOpen the TortoiseSVN Repository Browser toolIn the URL, enter:svn://192.168.11.229 Enter, prompt for user name and password2.2 Using the command line under Linux# SVN Co svn://192.168.11.2293 FAQ3.1 command line mode connection, prompt Svn:no repository found i
whether the current copy copy is the latest version : Specify automatic conflict resolution action (' postpone ', ' base ', ' mine-conflict ', ' theirs-conflict ', ' mine-full ', ' theirs-full ', ' edit ', ' launch ') (p) nbs P;postpone -mark the conflict to be resolved later//Let files remain in conflict after the update is complete. (DF) diff-full -Show all changes made to merged file//use standard distinguished format to show the difference betwee
= WritePassword-db =/var/svn/svndata/obj/conf/passwdAuthz-db =/var/svn/svndata/obj/conf/authz=================================================Note: svnserve.conf each of the parameters must be shelf write, the beginning can not have spaces.9, back up the original Authz and passwd files: Store Svnserver user's account number, passwordCP Authz passwd/var/svn/10. C
Svn deployment in linux and linuxsvn deployment
The installation procedure is as follows:
1. yum install subversion
Yum-y install httpd
Yum install mod_dav_svn
2. Enter rpm-ql subversion to view the installation location, for example:
We know that svn has generated several binary files in the bin directory. Enter svn -
List A few common Linux SVN commands1. Check outsvn Checkout path (path is SVN address)such as: SVN checkoutHttps://192.168.71.30/test/doc shorthand: SVN co https://192.168.71.30/test/doc2. NewSVN Add pathExample: SVN add test.cpp
Install the svn server in Linux.Preface
You are responsible for the project, set up a version control library, and use linux to set up the SVN version controller as the company's project version control library. No nonsense. Go to the topic directly:
Tool yum
The yum command is an rpm-Based Software Package Manager in Fedora, RedHat, and SUSE. It allows system
1. in linux
It is easy to delete these directories. The command is as follows:
Find.-type d-name ". svn" | xargs rm-rf
Or
Find.-type d-iname ". svn"-exec rm-rf {}\;
2. Use the following methods in windows:
1. Execute the doscommand in the project level directory:Xcopy project_dir project_dir_1/s/I
2. or execute the following doscommand in the project root direc
One, under the Linux
Deleting these directories is simple, and commands are as follows
Find. -type d-name ". SVN" |xargs RM-RF
Or
Find. -type d-iname ". SVN"-exec rm-rf {} \;
ii. under Windows, use the following:
1, in the project peer directory, the implementation of DOS command:
xcopy Project_dir project_dir_1/s/I
2, or in the project root directory to
method similar to a hard join (Hard-link). So these operations only take a very small amount of time and are fixed. (8) HackabilitySubversion has no historical baggage of any kind; it is primarily a group of common C libraries with well-defined APIs. This makes Subversion easy to maintain and can be used by other applications and program languages. Two. SVN Server build 2.1 Install SVN package with Yum fo
Subversion independent service and integrated service with Apache.I. SVN Independent Service InstallationOperating System: RedHat Linux as3 as 4 contos as 4Obtain the installation package:Download http://subversion.tigris.org/downloads/subversion-1.4.0.tar.gzAnd http://subversion.tigris.org/dow... n-deps-1.4.0.tar.gz.Compile:Log on as the root user.Upload subversion-1.4.0.tar.gzand subversion-deps-1.4.0.tar
, such as Test = test123Seven, set permissions[emailprotected]/0 # vim authz....[/]test = rwother = rThis means that the repository's root test has read and write permissions, and other only read permissions.Viii. Modification of svnserve.conf files[emailprotected]/0 # vim svnserve.conf....anon-access = noneauth-access = writepassword-db = passwdauthz-db = authzrealm = /usr/local/svn/testOpen a few notes below:Anon-access = None #匿名用户不可访问auth-access =
") or Die ("Cannot open the WEBPASSWD FILE!!! n ");Close (Out_file);#beginforeach (if ($_ =~ m/^[^#].*=/) {$_ =~ s/=//;' Htpasswd-b webpasswd $_ ';}}# chmod +x ptowp.pl#./ptowp.plAdding Password for user pmAdding Password for user Server_groupAdding Password for user Client_groupAdding Password for user Test_groupNow there will be one more webpasswd file in the directory.2, modify httpd.conf, add content about SVN serverTo edit/etc/httpd/conf/httpd.co
The installation steps are as follows:1. Yum Install Subversion2. Enter RPM-QL subversion to view the installation location, such as:650) this.width=650; "alt=" Linux (CentOS) build SVN server-small wood-green tomato Paradise "style=" margin:0 10px 0 0; "src=" http://img2.ph.126.net/joqDO_tGPbWonyHE1KAXPg==/2615465483612595002.jpg "/>We know that SVN generated a
configuration information is as follows:[Users]Lesterlee = password after saving,At this point, the passwd configuration is complete,Next Configure user permissionsVI AuthzThe configuration information is as follows:[Groups]#用户组Grouplesterlee= Lesterlee#将用户lesterlee加入用户组grouplesterlee中[/]Lesterlee= RW#读写权限@grouplesterlee = RWUser group Read and write permissionsFinally, start the SVN service and instructSvnserve-d-R/DATA/
way, please use the Windows version: VisualSVN Server, which is downloaded at the bottom of the above address page.Two. Install SVN (Linux)
1. Install SVN
Yum-Y
InstallSubversion
Note: To install quickly, use the root user
2. View the installation content and location RPM-QL subversion
3. Create the SVN
Build linux svn and use linuxsvn1. install # yum install subversion2. view the version # svnserve -- version3. create the SVN library # mkdir-p/opt/svn/repos # svnadmin create/opt/svn/repos to execute the above after the command, multiple files are automatically created unde
] then Killall svnserve svnserve-d-R/Svndata Echo"Reload OK" ElseEcho"SVN Server is not Running"fi;; Stop) Killall Svnserve echo"SVN Server has Been Stopped";; Status) Svnport= ' NETSTAT-NATP | grep Svnserve | Awk-f:'{print $4}'| Awk'nr==1'' PID= ' PS aux | grep Svnserve | Grep-v"grep"| Awk'{print $}'` if[$svnport-eq3690] then echo"SVN Server (PID:
reflect the simple URL changes. When the root URL of the warehouse changes(such as scheme name or host name change), but the working copy is still used when mapping to the same directory in the same warehouseThis command updates the correspondence between the working copy and the warehouse.17. Conflict ResolutionSVN resolved: Removes the "conflicting" status of the working Copy's directory or file.Usage: Resolved PATH ...Note: The book command does not resolve the conflict by syntax or remove t
changes. When the root URL of the warehouse changes(such as scheme name or host name change), but the working copy is still used when mapping to the same directory in the same warehouseThis command updates the correspondence between the working copy and the warehouse.17. Conflict ResolutionSVN resolved: Removes the "conflicting" status of the working Copy's directory or file.Usage: Resolved PATH ...Note: The book command does not resolve the conflict by syntax or remove the conflict token; it s
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.