码迷,mamicode.com
首页 > 其他好文 > 详细

git mirror的创建与使用

时间:2014-09-03 11:17:16      阅读:1137      评论:0      收藏:0      [点我收藏+]

标签:style   os   io   使用   ar   sp   on   c   new   

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

在/etc/exports加句

/home/your_username/my_mirror     *(ro,async,no_root_squash,nohide)

执行
$ sudo exportfs -rv

/*上面括号ro读rw读写权限*/


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/mirror_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

git mirror的创建与使用

标签:style   os   io   使用   ar   sp   on   c   new   

原文地址:http://blog.csdn.net/guan506713512/article/details/39024189

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!