how to upload my project files to online svn host?

本文提供了一步一步的指南,详细介绍了如何在本地设置SVN仓库结构,然后导入文件到SVN托管平台。包括使用repo-browser准备仓库结构,选择性提交文件或批量导入,以及如何正确地进行版本控制。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

http://stackoverflow.com/questions/2385152/how-to-upload-my-project-files-to-online-svn-host


Before importing your files I suggest you setup the basic structure of your repository. The typical structure looks like this:

|
+- trunk
+- branches
+- tags

You can prepare that structure using the repo-browser. To open the repo-browser right-click on the desktop and select TortoiseSVN -> Repo-browser from the context menu. Then type the repository URL as prompted.

The repo-browser presents an explorer like interface to the repository where you can right-click in the folder structure and use the New folder context menu option to create a folder.

Now for importing the files proper I see at least two methods.

Method 1 - Selectively commit the files

Right-click in the folder of your choice and select Checkout... from the context menu.

In the checkout dialog type the URL of the repository where your files will reside (e.g.https://project.example.com/svn/project/trunk) and the name of a new directory where you'll be working (i.e. the working copy).

Copy your files into the working copy.

When you are satisfied with the arrangement, right-click on the working copy root folder and select Commit... from the context menu.

Click the checkboxe beside each file that needs to be versioned.

Write a short commit message (eg. First commit) then click the Commit button.

Method 2 - Import everything

Right-click on the folder containing your files and select Import... from the context menu.

In the import dialog type the repository URL where these files shoud reside (e.g.https://project.example.com/svn/project/trunk) and write a short commit message such as Initial import.

Then right-click in the location of your choice select Checkout... from the context menu and type the URL of your project and the path for your working copy.

The working copy will be populated with your files. If everything looks right you can continue working from there.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值