Home Backend Development PHP Tutorial Getting started with SVN and configuring it_PHP tutorial

Getting started with SVN and configuring it_PHP tutorial

Jul 13, 2016 pm 05:39 PM
svn use getting Started Can Will Open source Control System data yes Version of free Configuration

SVN, or Subversion, is a free and open source version control system that can restore data to earlier versions or check the history of data modifications. The data can be source code or other types of files.

Before the emergence of SVN, CVS was the de facto standard for version control tools in the open source world. However, CVS had some inherent flaws, and fixing these flaws required a lot of effort. Therefore, Brian Behlendorf, the initiator of SVN, and CollabNet decided to re- Write a version control system that retains the basic ideas of CVS, but corrects its errors and unreasonable features. As a result, SVN emerged as the successor of CVS. The designers of SVN strive to win the favor of CVS users through two efforts: keeping the design and interface style of the open source system as similar as possible to CVS, while trying to make up for the many obvious shortcomings of CVS. The result of these efforts is that migrating from CVS to SVN does not require major changes, so more and more people choose SVN.
http://svnbook.red-bean.com
http://www.subversion.org.cn

Table of contents

1. Use of client
1.1 General use under Linux system (Ubuntu)
1.2 General use under Windows system
1.3 Use SVN+ssh authentication under Linux (no relevant information found @_@)
1.4 Using SVN+ssh authentication under Windows
2. Server-side configuration
2.1 svnserve configuration under Linux
2.2 svnserve configuration under Windows
2.3 svnserve+ssh configuration under Linux
2.4 svnserve+ssh configuration under Windows (requires Cygwin, omitted)
2.5 APache-based SVN server configuration under Linux
2.6 APache-based SVN server configuration under Windows
3. Establish a version library
3.1 Create a version library under Linux
3.2 Create a version library under Windows

Most people start using SVN from the client. The following will introduce the use of the client first. Assume that the SVN server has been assumed, its folder address is http://domain/svn/trunk/myproject, the user name is test, and the password is test. (If the server is configured with SVN, use the URL starting with svn:// for access; if the server is configured with SVN+SSH, use the URL starting with svn+ssh for access)

1. Use of client

1.1 Generally used under Linux (Ubuntu) system

1) First, you need to install the svn client. Under ubuntu, use $sudo apt-get install subversion (for others, please baigoogledu, Yu Tong)

2) checkout command: Use the checkout command when using it for the first time to copy the server directory to the current local directory. At the same time, a hidden folder will be created to record version information:
[Working directory]$svn checkout "http://domain/svn/trunk/myproject" --username test
Then enter the password

3) svn update command: Get the latest version on the server
[Working Directory]$svn update (except for the first time you need to add the url, user name and password, the system will remember it later)

4) svn add command: To add non-versioned local files to version control:
​[Working directory]$svn add hello.c

5) svn commit command: upload local files to the server

[Working directory]$svn commit (if there are new files, svn add first)

1.2 General use under Windows system

1) Install the client: http://tortoisesvn.net/downloads

2) Create a new folder (working directory), right-click and select checkout, fill in the URL and username and password

3) Right click on the working directory to update

4) Right click on the working directory to add

5) Right click on the working directory and commit

1.3 Using SVN+ssh authentication under Linux(No relevant information found@_@)

1.4 Using SVN+ssh authentication under Windows

(Refer to setting up svn server under ubuntu and establishing svn+ssh client in windows)

1.4.0 Install TortoiseSVN, Puttygen, Pageant
​http://sourceforge.net/projects/tortoisesvn
​http://www.chiark.greenend.org.uk/~sgtatham/putty/

1.4.1 Convert private key format
1) Copy the file key under Linux to Windows and run Puttygen;
2) Select the menu conversions->Import Key; select the file key, prompt "Enter passphrase for key", enter the passphrase keyword used to create the public-private key pair;
3) Select Parameters as "SSH-2 DSA" or "SSH-2 RSA" ->Save private key->Save the file name as username>key.ppk.

1.4.2 Establish the association between TortoiseSVN and Pageant, and add the private key to Pageant:
1) Right-click the mouse and select TortoiseSVN->Settings->Network->SSH client, enter:
C:Program FilesTortoiseSVN inTortoisePlink.exe
2) Right-click the mouse and select TortoiseSVN->RepoBrowser Enter URL:
​svn+ssh://@/usr/local/svn/trunk
3) Run Pageant, right-click the icon in the lower right corner of the screen -> Add Key, and add the private key file key.ppk.
——If you don’t want to cache the ssh password, steps 8 and 9 are not required and only the second step will be retained. However, you will have to enter the password twice every time you check out or check in every time you enter a folder, which will bore you to death :)

2. Server-side configuration

There are three options for web server deployment, and the configurations are arranged from simple to complex

·svnserve

·svnserve over SSH

·Apache+mod_dav_svn module

Let’s start with the simplest one and introduce svnserve.

[Update] The server-side configuration under Windows can use VisualSVN Server for fool-proof installation.

Official website: http://www.visualsvn.com/

Reference link: Introduction to VisualSVN series (there is a detailed introduction to the installation process, which will not be reproduced here)

2.1&2.2 Configure svnserve

svnserve is a lightweight server that can communicate with clients through a custom stateful protocol based on TCP/IP. The client uses a URL starting with svn:// or svn+ssh://svnserve. Access an svnserve server.

2.1 svnserve configuration under Linux

2.1.0 Similarly, use the command $sudo apt-get install subversion

2.1.1 svnserve acts as an independent daemon and listens for requests
​$svnserve -d
​$ #svnserve is now running, listening on port 3690
——You can use --listen-port=[port number] to specify the port, or --listen-host=[host name] to specify the host name
Assume that a repository has been created and is located in the /usr/local/repositories/project path (the establishment of the repository will be mentioned later). At this time, the client can use svn://[host]/usr/local/repositories/project to proceed. Visit
——You can use the -r option to limit the output to only the repository under the specified path, thereby making client access more concise:
​$svnserve -d -r /usr/local/repositories
Then the client can access

as long as it uses svn://[host]/project

2.1.2 Using svnserve with inetd
​$svnserve -i
——At this time, svnserve will try to use a custom protocol to talk to the subversion client through stdin and stdout. The default port is 3690. You can add the following lines to /etc/services:
​svn 3690/tcp #subversion
​svn 3690/udp #subversion
——If you are using the classic Unix-like inetd daemon, you can add the following line to /etc/inetd.conf. Then if a customer connects to port 3690, inetd will generate an svnserve process to provide services
​svn stream tcp nowait svnowner /usr/bin/svnserve svnserve -i

2.1.3 Set up svnserve’s built-in authentication

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/486270.htmlTechArticleSVN, or Subversion, is a free and open source version control system that can restore data to earlier versions, or check History of data modifications. This data can be source code or...
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Generate PPT with one click! Kimi: Let the 'PPT migrant workers' become popular first Generate PPT with one click! Kimi: Let the 'PPT migrant workers' become popular first Aug 01, 2024 pm 03:28 PM

Kimi: In just one sentence, in just ten seconds, a PPT will be ready. PPT is so annoying! To hold a meeting, you need to have a PPT; to write a weekly report, you need to have a PPT; to make an investment, you need to show a PPT; even when you accuse someone of cheating, you have to send a PPT. College is more like studying a PPT major. You watch PPT in class and do PPT after class. Perhaps, when Dennis Austin invented PPT 37 years ago, he did not expect that one day PPT would become so widespread. Talking about our hard experience of making PPT brings tears to our eyes. "It took three months to make a PPT of more than 20 pages, and I revised it dozens of times. I felt like vomiting when I saw the PPT." "At my peak, I did five PPTs a day, and even my breathing was PPT." If you have an impromptu meeting, you should do it

Slow Cellular Data Internet Speeds on iPhone: Fixes Slow Cellular Data Internet Speeds on iPhone: Fixes May 03, 2024 pm 09:01 PM

Facing lag, slow mobile data connection on iPhone? Typically, the strength of cellular internet on your phone depends on several factors such as region, cellular network type, roaming type, etc. There are some things you can do to get a faster, more reliable cellular Internet connection. Fix 1 – Force Restart iPhone Sometimes, force restarting your device just resets a lot of things, including the cellular connection. Step 1 – Just press the volume up key once and release. Next, press the Volume Down key and release it again. Step 2 – The next part of the process is to hold the button on the right side. Let the iPhone finish restarting. Enable cellular data and check network speed. Check again Fix 2 – Change data mode While 5G offers better network speeds, it works better when the signal is weaker

The vitality of super intelligence awakens! But with the arrival of self-updating AI, mothers no longer have to worry about data bottlenecks The vitality of super intelligence awakens! But with the arrival of self-updating AI, mothers no longer have to worry about data bottlenecks Apr 29, 2024 pm 06:55 PM

I cry to death. The world is madly building big models. The data on the Internet is not enough. It is not enough at all. The training model looks like "The Hunger Games", and AI researchers around the world are worrying about how to feed these data voracious eaters. This problem is particularly prominent in multi-modal tasks. At a time when nothing could be done, a start-up team from the Department of Renmin University of China used its own new model to become the first in China to make "model-generated data feed itself" a reality. Moreover, it is a two-pronged approach on the understanding side and the generation side. Both sides can generate high-quality, multi-modal new data and provide data feedback to the model itself. What is a model? Awaker 1.0, a large multi-modal model that just appeared on the Zhongguancun Forum. Who is the team? Sophon engine. Founded by Gao Yizhao, a doctoral student at Renmin University’s Hillhouse School of Artificial Intelligence.

All CVPR 2024 awards announced! Nearly 10,000 people attended the conference offline, and a Chinese researcher from Google won the best paper award All CVPR 2024 awards announced! Nearly 10,000 people attended the conference offline, and a Chinese researcher from Google won the best paper award Jun 20, 2024 pm 05:43 PM

In the early morning of June 20th, Beijing time, CVPR2024, the top international computer vision conference held in Seattle, officially announced the best paper and other awards. This year, a total of 10 papers won awards, including 2 best papers and 2 best student papers. In addition, there were 2 best paper nominations and 4 best student paper nominations. The top conference in the field of computer vision (CV) is CVPR, which attracts a large number of research institutions and universities every year. According to statistics, a total of 11,532 papers were submitted this year, and 2,719 were accepted, with an acceptance rate of 23.6%. According to Georgia Institute of Technology’s statistical analysis of CVPR2024 data, from the perspective of research topics, the largest number of papers is image and video synthesis and generation (Imageandvideosyn

BTCC tutorial: How to bind and use MetaMask wallet on BTCC exchange? BTCC tutorial: How to bind and use MetaMask wallet on BTCC exchange? Apr 26, 2024 am 09:40 AM

MetaMask (also called Little Fox Wallet in Chinese) is a free and well-received encryption wallet software. Currently, BTCC supports binding to the MetaMask wallet. After binding, you can use the MetaMask wallet to quickly log in, store value, buy coins, etc., and you can also get 20 USDT trial bonus for the first time binding. In the BTCCMetaMask wallet tutorial, we will introduce in detail how to register and use MetaMask, and how to bind and use the Little Fox wallet in BTCC. What is MetaMask wallet? With over 30 million users, MetaMask Little Fox Wallet is one of the most popular cryptocurrency wallets today. It is free to use and can be installed on the network as an extension

The U.S. Air Force showcases its first AI fighter jet with high profile! The minister personally conducted the test drive without interfering during the whole process, and 100,000 lines of code were tested for 21 times. The U.S. Air Force showcases its first AI fighter jet with high profile! The minister personally conducted the test drive without interfering during the whole process, and 100,000 lines of code were tested for 21 times. May 07, 2024 pm 05:00 PM

Recently, the military circle has been overwhelmed by the news: US military fighter jets can now complete fully automatic air combat using AI. Yes, just recently, the US military’s AI fighter jet was made public for the first time and the mystery was unveiled. The full name of this fighter is the Variable Stability Simulator Test Aircraft (VISTA). It was personally flown by the Secretary of the US Air Force to simulate a one-on-one air battle. On May 2, U.S. Air Force Secretary Frank Kendall took off in an X-62AVISTA at Edwards Air Force Base. Note that during the one-hour flight, all flight actions were completed autonomously by AI! Kendall said - "For the past few decades, we have been thinking about the unlimited potential of autonomous air-to-air combat, but it has always seemed out of reach." However now,

750,000 rounds of one-on-one battle between large models, GPT-4 won the championship, and Llama 3 ranked fifth 750,000 rounds of one-on-one battle between large models, GPT-4 won the championship, and Llama 3 ranked fifth Apr 23, 2024 pm 03:28 PM

Regarding Llama3, new test results have been released - the large model evaluation community LMSYS released a large model ranking list. Llama3 ranked fifth, and tied for first place with GPT-4 in the English category. The picture is different from other benchmarks. This list is based on one-on-one battles between models, and the evaluators from all over the network make their own propositions and scores. In the end, Llama3 ranked fifth on the list, followed by three different versions of GPT-4 and Claude3 Super Cup Opus. In the English single list, Llama3 overtook Claude and tied with GPT-4. Regarding this result, Meta’s chief scientist LeCun was very happy and forwarded the tweet and

Tesla robots work in factories, Musk: The degree of freedom of hands will reach 22 this year! Tesla robots work in factories, Musk: The degree of freedom of hands will reach 22 this year! May 06, 2024 pm 04:13 PM

The latest video of Tesla's robot Optimus is released, and it can already work in the factory. At normal speed, it sorts batteries (Tesla's 4680 batteries) like this: The official also released what it looks like at 20x speed - on a small "workstation", picking and picking and picking: This time it is released One of the highlights of the video is that Optimus completes this work in the factory, completely autonomously, without human intervention throughout the process. And from the perspective of Optimus, it can also pick up and place the crooked battery, focusing on automatic error correction: Regarding Optimus's hand, NVIDIA scientist Jim Fan gave a high evaluation: Optimus's hand is the world's five-fingered robot. One of the most dexterous. Its hands are not only tactile

See all articles