Migrate the SVN version library to Gerrit __git

Source: Internet
Author: User
Tags svn

The first step, according to the requirements of the project, to determine whether the need to do a version of the library segmentation, that is, an SVN project to split into multiple Gerrit project, in git similar and SVN in the directory checkout features, very unnatural. Therefore, the first step, from the project management point of view, according to the dependencies between projects, planning a good version of the library segmentation.

The second step is to implement the version library in SVN and organize the items that need to be split through the SVN move command to a certain directory.

The third step, using the Git svn clone command, clones the directory that was split up in SVN into a different directory.

Step fourth, create a corresponding Git project in Gerrit, and then, with the GIT remote add command in the clone and the corresponding Gerrit project path, direct Git push Origin master

The fifth step, after the fourth step, has all the versions of the library, including all the history records, migrated to the Gerrit. You can now start to configure the settings for project in Gerrit.

Step sixth, depending on your specific requirements, you can add submodule to the version library to better manage the interdependent version libraries.


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.