repo

repo



example

mkdir ~/bin
export PATH=~/bin:$PATH
curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo > ~/bin/repo
chmod a+x ~/bin/repo
export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo'


$ repo init -u git@git.url/project_repo.git -b PROJECT_BRANCH --repo-url=https://mirrors.tuna.tsinghua.edu.cn/git/git-repo
$ repo sync
$ repo forall -c "git checkout -b PROJECT_BRANCH  origin/PROJECT_BRANCH "


repo init -u git@git.url/manifests.git -m project.xml
repo sync


repo list
repo status
repo forall -c "git status"



refernece:
git repo工具详细使用教程


http://blog.fpliu.com/it/software/repo
https://www.litreily.top/2022/02/24/gitlab-repo/



posted @ 2023-05-22 11:12  王阳开  阅读(40)  评论(0编辑  收藏  举报