Code Cloud Gitee-Enable SVN support and submit code collaboratively through SVN and Git

Code Cloud Gitee-Enable SVN support and submit code collaboratively through SVN and Git


1 Introduction

Code Cloud currently supports the use of Subversion to operate the warehouse

2. Use attention

1 When the warehouse volume exceeds 300 MB, it is not recommended to use Subversion to operate the warehouse. When the warehouse capacity reaches 400 MB or 300 MB and stores a large amount of non-text data, we will close the warehouse's Subversion support.

2 Since GIT does not support the submission of an empty directory, on the storage machine, whether it is a normal warehouse or a warehouse connected to Subversion, it is a GIT warehouse. Subversion's commit is submitted to a git warehouse, so Subversion of Code Cloud does not Support the submission of empty directories.

3 Open Subversion for the first time and operate a warehouse. If the warehouse is large or has many submissions, the response time will be longer due to caching.

4 Subversion's Hook mechanism is not supported, please use WebHook instead.

5 Subversion properties are not fully supported.

6 The client needs to enable SASL support, and clients that do not support it cannot be accessed.

7 Some svn commands are not supported. You can check the compatibility of the Subversion client.

8 Version number mapping. The current Subversion version number calculation is based on the number of all commits in this branch minus one excluding merge. If you use operations such as forced rollback in git, please check out again.

3. Pay special attention

Because git is not designed to consider empty files

Relevant information

If you need to submit an empty directory, it is recommended to add an empty file to ensure warehouse consistency

4. Opening method

On the project settings page, check to enable SVN support, just pull it to the end and save

Insert picture description here

If it is empty warehouse

Insert picture description here

5 Support SVN protocol

Code Cloud supports the svn protocol. For svn, the code to get a warehouse is usually checkout, and we usually get the URL on the project homepage

Insert picture description here

Then the warehouse address is

svn://git.oschina.net/svnserver/newos

The URL rule is svn://domain name/user name/project name

The pull code is

svn checkout svn://git.oschina.net/svnserver/newos newos

Pull branch code

svn://域名/用户名/项目名/branches/分支名

Get the special case of the master branch

Get the main branch, that is, the master branch can use the following branch format

svn checkout svn://git.oschina.net/svnserver/newos/trunk newos

Guess you like

Origin blog.csdn.net/qq_15071263/article/details/108720093