博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
repo+git搭建
阅读量:3560 次
发布时间:2019-05-20

本文共 1524 字,大约阅读时间需要 5 分钟。

1.git端x1000目录下建立manifest.git及源代码仓库
/home/git/repositories/x1000:
manifests.git  platform/
2.将manifests.git授权,然后在client端clone下来。加配置文件:default.xml。如果有多种配置,可创建相应文件夹。见参考。其中服务器地址配置如下,fetch中也可用相对manifest.git路径(如..或../..等):
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <remote  name="origin"
           fetch="ssh://git@192.168.7.88" />
  <default 
   remote="origin"
       revision="master"
       sync-j="1" />
</manifest>
有project文件相关配置如下,注意目录的相对关系:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <project path="build" name="x1000/platform/build" revision="ingenic-master" />
  <project path="kernel" name="x1000/platform/kernel" revision="ingenic-master-3.10.14" />
  <project path="bootable/bootloader/u-boot" name="x1000/platform/bootable/bootloader/u-boot" revision="ingenic-master" />
  <project path="bootable/bootloader/x-loader" name="x1000/platform/bootable/bootloader/x-loader" />
</manifest>
3.将manifest修改好后push到clone.
4.将gitadmin-gitosis加上相关工程权限后push到clone
5.拉取:
  repo init -u git@192.168.7.88:x1000/manifests.git -b ingenic-linux-kernel3.10.14-halley2-v2.0-20160905 -m boards/halley2.xml
或试试下面方式:
./repo init -u ssh://git@58.250.243.8:29418/mirror/Manhhatan/halley2/platform/manifest.git -b ingenic-linux-kernel3.10.14-halley2-v2.0-20160905 -m boards/halley2.xml
6.同步
./repo sync
如果同步下载google的repo失败,可以把repo文件夹放.repo目录下。
在生成repo的代码仓库时,如果有原来的repo工程。只需把.repo/project目录下所有的.git放服务器上即可,放之前用如下命令:
repo forall -c "git branch -a | grep remote | while read rb;do lb=$(echo ${rb} | cut -s -d/ -f 3- | cut -d' ' -f1); git checkout $lb $rb;done"
提取所有的git分支。

转载地址:http://xdhrj.baihongyu.com/

你可能感兴趣的文章
Leetcode 旋转图像
查看>>
Leetcode 买卖股票的最佳时机 II 贪心
查看>>
codeforces 1027 D - Mouse Hunt dfs
查看>>
Leetcode 199. 二叉树的右视图 二叉树的遍历
查看>>
codeforces 999E Reachability from the Capital targan+缩点
查看>>
Leetcode 121 买卖股票的最佳时机 动态规划
查看>>
ACM-ICPC 2018 徐州赛区网络预赛 徐州 H Ryuji doesn't want to study 线段树
查看>>
POJ 1236 Network of Schools targan+缩点
查看>>
Leetcode 15. 三数之和
查看>>
POJ 3180 The Cow Prom targan+缩点
查看>>
HDU 2186 Proving Equivalences targan+缩点
查看>>
Leetcode 打家劫舍 动态规划
查看>>
Aizu - ALDS1_10_C Longest Common Subsequence 动态规划
查看>>
Leetcode 62. 不同路径
查看>>
Leetcode 63. 不同路径 II 动态规划
查看>>
Leetcode 16. 最接近的三数之和 模拟
查看>>
Leetcode 31. 下一个排列
查看>>
PTA 02-线性结构1 两个有序链表序列的合并 (15 分)
查看>>
中国大学MOOC-陈越、何钦铭-数据结构-2018秋 03-树3 Tree Traversals Again (25 分)
查看>>
中国大学MOOC-陈越、何钦铭-数据结构-2018秋 03-树2 List Leaves (25 分)
查看>>