当前位置:网站首页>How to set up SVN server on this machine
How to set up SVN server on this machine
2022-07-03 16:21:00 【Brother Xing plays with the clouds】
Purpose : In the absence of a formal SVN The server Under the circumstances , Complete the local backup of the code .
download :
http://subversion.tigris.org/
http://subversion.apache.org/
http://www.visualsvn.com/server/download/
Apache download :httpd.apache.org/download.cgi
SVN download :subversion.tigris.org/servlets/ProjectDocumentList
Tortoise download :prdownloads.sourceforge.net/tortoisesvn/TortoiseSVN-1.3.2.5840-svn-1.3.0.msi
Tortoise Chinese simplified language pack download : stay prdownloads.sourceforge.net/tortoisesvn/LanguagePack_1.3.2_zh_CN.exe
Windows Next SVN The server Build and use graphic tutorials http://www.linuxidc.com/Linux/2013-03/81665.htm
Reference resources :
1, Software download
download Subversion The server Program .
Download the binary installation file from the official website , Go to the binary package download section , find Windows NT, 2000, XP and 2003 part , And then choose " this directory ", In this way, we can see a lot of downloaded content , Now you can download svn-1.4.0-setup.exe .
download Subversion Of Windows client TortoiseSVN.
TortoiseSVN It 's an extension Windows Shell A set of tools for , Can be seen as Windows Plug in of resource manager , After installation Windows You can identify Subversion Working directory of . The official website is TortoiseSVN , The download method is the same as the previous svn The server similar , stay Download We can choose the download version of the page , The current installation file of the most stable version is TortoiseSVN-1.4.0.7501-win32-svn-1.4.0.msi.
2, The server And client installation
Server installation , Direct operation svn-1.4.0-setup.exe , Follow the instructions to install , In this way, we have an environment in which the server can run .
install TortoiseSVN, Also run directly TortoiseSVN-1.4.0.7501-win32-svn-1.4.0.msi Follow the instructions to install , However, you will be prompted whether to restart after the final completion , Actually, restarting just makes svn Working copy in windows The special style in takes effect , It has nothing to do with all the actual functions , Here, in order to see the good effect immediately , Or restart the machine .
3, Build version Library (Repository)
function Subversion The server needs to set up a version library first (Repository), It can be regarded as the database storing data on the server , Installed on Subversion After the server , It can run directly , Such as :
svnadmin create E:/svndemo/repositoryIt will be in the directory E:/svndemo/repository Next, create a version Library .
We can also use TortoiseSVN Do this graphically : In the catalog E:/svndemo/repository Next " Right click ->TortoiseSVN->Create Repository here...“, Then you can choose the repository mode , Use default here , Then you create a series of directories and files .
4, Configure users and permissions
Came to E:/svndemo/repository/conf Catalog , modify svnserve.conf: # [general] # password-db = passwd Change it to : [general] password-db = passwd And then modify the passwd file , Remove the comments in the following three lines : # [users] # harry = harryssecret # sally = sallyssecret Finally become : [users] harry = harryssecret sally = sallyssecret
ad locum , Because generally speaking , Project svn The user name and password of are uniformly authenticated , In order not to enter the password every time , So it's using TortoiseSVN When , Directly remember the password , The user name and password here should be consistent with the project , To avoid accidents .
5, Run a stand-alone server
Run in any directory : svnserve -d -r E:/svndemo/repository Our server program has been started . Be careful not to close the command line window , Closing the window will also svnserve stop it .
Found in use , Even if this window is closed ,svn As good as ~~ I don't know why ~
6, Initialize import
Go to the root directory of the project we want to import , In this case is E:/svndemo/initproject, There is a readme.txt file :
Right click ->TortoiseSVN->Import... URL of repository Input “svn://localhost/” ok There is no change in the directory after completion , If no error is reported , The data has been imported into the version library we just defined .
It should be noted that , This step can be completely installed on another machine TortoiseSVN On the host . For example, running svnserve The host of IP yes 133.96.121.22, be URL Part of the input is “svn://133.96.121.22/”.
ad locum , do not know why , Use svn://localhost/ I can't make up my mind , Finally, an idea came to use file:///E:/svndemo/repository/ Instead, it's done ~~
7, Basic client operation
Take the repository to a working copy : Go to any empty directory , In this case, it's E:/svndemo/wc1, Right click to run ->Checkout, stay URL of repository Input in svn://localhost/, So we get a copy of the job . Make changes in working copy and submit : open readme.txt, Make changes , And then right-click ->Commit..., So we submit the changes to the repository , We can run .
Look at the changes made : readme.txt Right click ->TortoiseSVN->Show Log, So we can see all our submissions to this document . In version 1 Right click ->Compare with working copy, We can compare files and versions of working copies 1 The difference between .
边栏推荐
- First knowledge of database
- 探索Cassandra的去中心化分布式架构
- Redis installation under windows and Linux systems
- Thinking about telecommuting under the background of normalization of epidemic | community essay solicitation
- ASEMI整流桥UMB10F参数,UMB10F规格,UMB10F封装
- [system safety] 43 PowerShell malicious code detection series (5) automatic extraction of ten thousand words from abstract syntax tree
- The mixlab editing team is recruiting teammates~~
- Uploads labs range (with source code analysis) (under update)
- 8个酷炫可视化图表,快速写出老板爱看的可视化分析报告
- 8 cool visual charts to quickly write the visual analysis report that the boss likes to see
猜你喜欢

Low level version of drawing interface (explain each step in detail)

The accept attribute of the El upload upload component restricts the file type (detailed explanation of the case)

"Remake Apple product UI with Android" (2) -- silky Appstore card transition animation

Nifi from introduction to practice (nanny level tutorial) - flow

深入理解 SQL 中的 Grouping Sets 语句
![[solved] access denied for user 'root' @ 'localhost' (using password: yes)](/img/71/1ff8ed1d773da99054310f96dca3f8.jpg)
[solved] access denied for user 'root' @ 'localhost' (using password: yes)

Google Earth engine (GEE) - daymet v4: daily surface weather data set (1000m resolution) including data acquisition methods for each day

Cocos Creator 2.x 自动打包(构建 + 编译)

嵌入式开发:避免开源软件的7个理由

Basis of target detection (IOU)
随机推荐
MB10M-ASEMI整流桥MB10M
Explore Cassandra's decentralized distributed architecture
Extraction of the same pointcut
Hibernate的缓存机制/会话级缓存机制
请求头不同国家和语言的表示
14 topics for performance interviews between superiors and subordinates (4)
Why does the std:: string operation perform poorly- Why do std::string operations perform poorly?
2022爱分析· 国央企数字化厂商全景报告
无心剑中译泰戈尔《漂鸟集(1~10)》
首发!!lancet饿了么官方文档
[statement] about searching sogk1997 and finding many web crawler results
ThreeJS 第二篇:顶点概念、几何体结构
LeetCode1491. Average value of wages after removing the minimum wage and the maximum wage
Embedded development: seven reasons to avoid open source software
8 tips for effective performance evaluation
uploads-labs靶场(附源码分析)(更新中)
Break through 1million, sword finger 2million!
远程办公之大家一同实现合作编辑资料和开发文档 | 社区征文
First!! Is lancet hungry? Official documents
Go language self-study series | if else if statement in golang