Phpstorm Configuring using SVN steps in detail

Source: Internet
Author: User
First, build SVN environment

1. Download VisualSVN Sever. Download Address: https://www.visualsvn.com/server/download/

2. Install VisualSVN Server.

Click "Next".

Click "Next", Next, here Default, install SVN server and Admin console, below is also the default check Add SVN command line tool to environment variable.

Click ' Next ', select the installed version, here by default, select the standard version

Click ' Standard edtion ' to appear, here the parameters default

Then click ' Install ' for installation.

When the installation is complete, you can tick ' Start visualsvn Server ' and click ' Finish '. You can also click on ' Finish ' to start the menu and open the VISUALSVN.

2. Configure SVN. Right-click on "Repositories"

Then select "Create New Repository".

Next, then enter the name of the code base

Next, the default selection is the empty code base, where the default

Next, select permissions, here by default, all users have read and write permissions

Click "Create"

The address here is important and needs to be copied down. This is the address of the code base, click "Finish", the establishment of an empty code base.

3. Create a user.

Right-click on ' Users ', ' Create user ', or ' new ', ' user '

Enter the user name and password, click "OK", you can create a user

Add users to the new code base, right-click on the new code base, ' Properties '

Then add the user, by default with a ' Everyone ' user, delete it, add the user, the following can choose permissions

Second, use SVN in Phpstorm

1. Open Phpstorm and locate the tool vcs->checkout from Version control->subversion

Click Enter, click on the "+" sign in the page, then enter the SVN address (the one that was copied in the previous step, the link to the code base). Click OK.

2.SVN Checkout, we select the SVN link just added and then ' Checkout '.

3, local check out. Select a local destination directory and click OK. Select the version you want to update to local, and click OK. Select the SVN server version and click OK.

asks if you want to open this directory, ' YES ', and then asks if it opens in a new window or in the current window, and then "OK"

The first update may be a bit longer. Wait patiently. The project has been updated locally.

4. Update the project. "VCS", "Update Project", then "OK", if you need to enter the user password in the process, please enter the SVN server red created user and password

Now let's talk about the other SVN features in Phpstorm:

View Local History

"VCS", "Local History", "Show history"

View SVN history

"Show History", "VCS", "Subversion", is used when you want to see what updates have been updated each time.

Of course you should "commit file" before this. When you have modified or added a file, "VCS", "Subversion", "Commit file"

Simulating multi-user updates

First, you need to delete the previous user. ' File ', ' setting ', ' Version control ', ' Subversion ' click ' Clear Auth Cache ' and click ' Yes '

Then you need to click on the Update button (position in the top right corner), or ' VCS ', ' Update Project '

After that, just like the previous check-out, you need to enter the other accounts and passwords set up on SVN.

Click OK

Click the Submit button after modifying or adding a file

Tick the file you want to submit, modify the comment information, and click ' Commit ' to complete.

Import the local project into SVN.

The new project wants to import SVN, then follow the steps below to

' VCS ', ' Import into version control ', ' Import into Subversion '

Then select the SVN address and click ' Import '

After that, find your local project directory that is new or you want to import svn, click ' OK '

Then fill in the submitted comments and click ' OK '

You'll need to enter the SVN username and secret, then click ' OK '

Complete!

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.