Gitlab Project migration to gerrit__ migration

Source: Internet
Author: User

1, the new project on the Gerrit;

2, Gerrit project configuration permissions (here not code):

reference:refs/* 

Push Annotated tag 
push signed tag 
Forge committer Identity 
Create Reference 
Read 
Push

3, the Gitlab project cloning to local;

4. Navigate to the directory of the Gitlab project and use the command to change the remote warehouse path to the Gerrit Project warehouse path:

git remote Set-url origin SSH://ADMIN@172.16.8.2:29418/JSQB

5. Check out all branches: List all branches

Git branch-r checked out to local

git checkout Branch1

git checkout Branch2

git checkout Branch3

...

6, push all branches and tags to the Gerrit:

git push--all

git push--tags

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.