代码管理,很久没搞repo,mark一下
1. 通过manifest管理
repo init -u git@gitlab.com:*****.git -b master
repo sync
repo安装:
cd /localrepo/bin/
git clone https://gerrit.googlesource.com/git-repo -b stable
export REPO_URL=/localrepo/bin/git-repo/
更新:
repo sync
提交:
repo upload
2. vcs 直接下载
参照示例:
vcs import . < ros2.repos
repositories:
ament/ament_cmake:
type: git
url: https://github.com/ament/ament_cmake.git
version: 0.6.1
ament/ament_index:
type: git
url: https://github.com/ament/ament_index.git
version: 0.5.1
.......
3. 单个git clone
略