Here are the basic repo commands:
mkdir myprojects
cd myprojects
repo init -u url_of_manifest.git -b manifest_branch -m manifest_xml
repo sync
If manifest_branch
is master
, -b master
can be omitted. If manifest_xml
is default.xml
, -m default.xml
can be omitted.
Besides all of you project repos, you need to maintain an extra manifest repo. The manifest repo contains manifests. Here is a manifest sample and manifest-format.
A manifest describes where to fetch the repos, which repos you want to manage and what revision each repo will checkout in what working trees. repo sync
downloads all the git data and creates working trees with specific revisions.