首页 > 技术文章 > repo常用命令

vivian187 2020-04-16 10:55 原文

1.初始化

repo init –u <URL> [<OPTIONS>]

2.同步代码

repo sync

3.查看分支

repo branch

4.repo对所有git仓库的同步操作

repo forall -c git checkout xxxbranch   //切换或创建分支,xxxbranch和远程分支名一样
repo forall -c git clean -fd
repo forall -c git reset --hard HEAD
repo forall -c git pull

推荐阅读