Create and use git mirror

Source: Internet
Author: User
Please donwload repo mirro as follow steps, thanks


1. Mirror Server, Server IP: 192.168.0.123

1.1

-- Delete the old version repo BIN file;
-- $ Sudo apt-Get install SEMC-gitwizard (donwload Sony repo BIN file );
-- Open a new terminal (make Repo BIN file available );
-- Download repo mirror as follow,
$ Mkdir ~ /My_mirror
$ Cd ~ /My_mirror

$ Repo init-u git: // xxxx/manifest. Git-B XXXX -- mirror

$ Repo sync

1.2 share your mirror

Add a sentence to/etc/exports

/Home/your_username/my_mirror * (RO, async, no_root_squash, nohide)

Run
$ Sudo exportfs-RV

/* Read and write permissions of RO read RW in the brackets above */


2. -- work with mirror

2.1. Local

$ Mkdir ~ /My_repos
$ Mkdir ~ /My_repos/<branch_name>
$ Cd ~ /My_repos/<branch_name>

$ Repo init-u git: // xxxx/manifest. Git-B XXXX -- reference =/home/<path>/my_mirror


2.2.other PC (client ):

$ Sudo mkdif NFS

$ Sudo Mount 192.168.0.123:/home/cmd_path/my_mirror/mnt/nfs

$ Mkdir ~ /My_repos
$ Mkdir ~ /My_repos/<branch_name>
$ Cd ~ /My_repos/<branch_name>

$ Repo init-u git: // xxxx/manifest. Git-B XXXX -- reference =/mnt/nfs

$ Repo sync

Create and use git mirror

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.