1.what's repo
–Repo is version management tool on top of Git, written with python script
–Unifies all the Git repositories (manifest.xml);
–Automates development workflow (project.list);
–May uploads to code-review system (Gerrit)
2.repo command
$repo init <URL> [-m <XML>] [-b <BRANCH>]
--Initialize a new client
$repo sync
--Sync client to repository
$repo start <BRANCH> --all
--Start a new branch for all projects
$repo status
--Show status of current branch
$repo upload .
--Upload commits to Gerrit for code review
$repo forall -c <git-cmd>
--excute the git-cmd for all projects,for example, repo forall -c git reset --hard HEAD 2>/dev/null