说明
Repo 是一款管理代码的工具,可让您在大型集成环境中更轻松地管理项目代码
下载
curl https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 -o ~/bin/repo
chmod a+x ~/bin/repo
目录
mkdir master
cd master
配置
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
初始化
#repo init -u <url> [OPTIONS]
#以OpenHarmony为例
repo init -u https://gitee.com/openharmony/manifest.git -b master --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull'
同步
repo sync
查看
repo branch
状态
repo status
更新
repo forall -c 'git pull projectname'
位置
cd .repo
cd manifest
vi defaule.xml