Win under SVN common operation notes

Source: Internet
Author: User

SVN basic commands

Checkout check out download the server code to a local copy
Update update updates the latest code on the server to local
Commit commits to submit local code to the server

Win under SVN's client tool TORTOISESVN

First, create a warehouse

1. Create a new empty directory in E-drive test
2. Enter this directory, right-click Tortoisesvn->create repository here (Create repository here)

Second, we are checking out the warehouse

1. Right-click to select SVN Checkout (svn check out)
2, enter file:///E:/test (if remote please use svn://), click OK.

Third, add the file

1. In the directory we checked out, add the index.php file
2. Right-click to select Tortoisesvn->add (join)

Iv. deletion of files

Select File, right-click Tortoisesvn->delete (delete)

V. Change of name

Select File, right-click Tortoisesvn->rename (rename)

VI. updates and submissions for SVN

In your project directory, right-click SVN update or SVN commit (commit)

Seven, tortoisesvn icon

1, green Check out the new warehouse status is normal, no change
2. Red exclamation mark File modified
3, Yellow Word exclamation mark submission process conflict
4. The blue plus sign has files that have been scheduled to be added to version control

Eight, display the log

In the project directory, right-click Tortoisesvn->show log (display log)

Nine, return to the specified version

1, first by displaying the log, check the version number you want to return
2, in the project directory, right-click Tortoisesvn->update to version (update to release), fill in the version number to be returned.

X. Resolution of conflict documents

A conflict occurs when you modify the same file at the same time.

1, when the update, there will be a conflict warning, there will be three files
Conflicting files. MIME (ex: Index.php.mime)
Conflict file. R Last Commit version number (example: INDEX.PHP.R2)
Conflicting files. R last commit version number (ex: INDEX.PHP.R3)

2, we open the conflict file, the conflict caused the place to modify.
3, select the conflict file, right-tortoisesvn->resolved (solve), SVN will automatically delete those files.
3, then we update, submit.

Xi. ignoring

Some files we do not need SVN to constantly monitor the state of the file modification, such as cache files.

Select File, right-click Tortoisesvn->add to ignore list (add to ignore list)

12. Install SVN server

Download SVN Server Software
https://sourceforge.net/projects/win32svn/files/

After the next installation succeeds, add the bin directory under the installation directory to the environment variable.

> Svnadmin Create E:/test

Open e:/test/conf/svnserve.conf, modify the following
Password-db = passwd
Authz-db = Authz

Modify E:/TEST/CONF/PASSWD as follows
[Users]
Test = 123456

Modify E:/test/conf/authz as follows
[/]
Test = RW #test有读写权限

Start the server
> svnserve-d-R e:/test

Server Check out
Since we are running as a standalone server and not integrated with Apache, the address is SVN://IP address/xxx


Win under SVN common operation notes

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.