Windows tortoisesvn getting started

Source: Internet
Author: User
Tags tortoisesvn

Source 1: http://www.cnblogs.com/richcem/archive/2011/01/08/1930823.html

Source 2: http://fairyfish.net/2007/09/08/tortoisesvn-introduce/

 

Install and configure Svn in Windows

1. the download process installs the svn server and tortoisesvn.

  • Win32svn
  • Tortoisesvn, Chinese support

2. Create an SVN Repository

  • Use SVN commands:

-Svnadmin create d:/svnroot

  • Use tortoisesvn:

-Right-click-> tortoisesvn-> Create a version library here

3. Enable SVN Server

  • Enable command line:

-Svnserve-D-r d:/svnroot

  • Or set svnserve as a system service.

-SC create svnserve binpath = "C:/program files/subversion/bin/svnserve.exe -- service-R D:/svnroot" displayname = "svnserve" depend = TCPIP start = auto

SC create: Create a system service
SvnserverService name, whenDelete this serviceWhen using
Binpath = "C:/SVN/bin/svnserve.exe -- service-r d:/dyu_repo"Service executable files and Parameters
Displayname = "svnservice"The name of the service displayed. It is displayed in management tools> services.
Depend = TCPIP start = autoThis service is automatically started based on the service dependency and startup method.

Note that in the preceding command line, all "=" must be followed by spaces, and note the format of quotation marks.

 

  • Delete SVN Service

-SC Delete svnserve

 

4. Configure the svn user and password

  • Configure users and permissions

Go to the E:/svndemo/Repository/conf directory and modify svnserve. conf:
# [General]
# Password-DB = passwd
Changed:
[General]
Password-DB = passwd

Modify the passwd file in the same directory and remove the following three lines of comment:
# [Users]
# Harry = harryssecret
# Sally = sallyssecret
Finally changed:
[Users]
Harry = harryssecret
Sally = sallyssecret

In the passwd file, the character before "=" is the user name, followed by the password. Note that the comment "#" before "[users]" must be deleted.

 

  • SVN permission management

SVN permission management involves the following files:
In the passwd file --/conf directory, the user name and password used to store the svn library are separated by =, the user name is on the left, and the password (plaintext) is on the right ).
The authz --/conf directory stores the access authorization information of the svn library.
The svnserve. CONF/conf directory stores the global access control information of the svn library.

The most important part is the authz file, which defines two parts:
1. Definition of group members,
2. Definition of directory authorization,
You can authorize a single user or a group defined in [groups]. You can also use the * wildcard to authorize all users,
Authorization options include: read-only access ('R'), read/write access ('rw '), or no permission to ask questions ('').
You can control permissions on any directory in the authz file. The following is an example:
[Groups]
# The comment line defines the admin and pH groups and the members of the two groups.
Admin = Harry, Sally
PH = hy, Jim
[/Foo/bar]
Harry = RW
# Using * as the key value means that all permissions are controlled.
* =
# Using @ as the key value means authorizing the group defined above
@ Admin = RW

 

Install

You can download the latest version of tortoisesvn from tortoisesvn official site. The Chinese translation package can be downloaded from the Subversion Chinese site. After downloading the package, click the installation package and click Next.

Download Project

In the proper location of your hard disk, click the email and select SVN checkout...

Then a checkout option dialog box will pop up, enter the remote project directory and local working directory, WordPress Chinese team's Google Code SVN server, remote Project address: https://wpcn.googlecode.com/svn/trunk/

Click OK to bring up a dialog box for remote server Verification:

Here the user name for your Gmail user name, do not bring (@ gmail.com), the password is not your Gmail mailbox password, you need to go to the http://code.google.com/p/wpcn/source
The page dynamically generates a password:

Of course, you must first become a member to use the svn service of the project. If you want to contribute to the WordPress Chinese team, you can leave a message to apply to join.

After entering the user name and password, click OK to start downloading:

Submit changes

After modification, you can right-click the project folder or right-click the file you modified, and select SVN commit ..., The difference between the two is that the first one can submit modifications to all the files you have made at a time, and the second one is to submit the files you selected.

After you Click Commit, a dialog box asking you to enter the change log is displayed:

Enter your modifications and click OK to submit the modifications to the remote server:

Import Project

If the translation plug-in or plug-in is written and you want to submit it to the remote server, select the folder, right-click it, and select tortoisesvn => Import...

The import option dialog box appears, which belongs to the remote server address and comment. If you have not saved the password before, you may enter your Google Code password again. Click OK to import the local file to the remote server.

Other functions

Web browsing: You can use this address https://wpcn.googlecode.com/svn/trunk/ to browse the project on the web page, also need the same password as before.

SVN update: Compare with the server version to update

Revert: Cancel the last operation (only for the client, but not for the server)

Add: Add a new directory or file to the project.

Revision Graph: Version

Show log: View version logs and compare different versions

Check for modifications: Compare with the project version on the server and make corresponding modifications.

 

 

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.