Transclusion: Repo Setup

From Compulab Mediawiki
Revision as of 12:22, 25 December 2016 by Ilya (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This section describes installing and setting up a repo tool. repo is a tool built on top of git that makes it easier to manage projects that contain multiple repositories, which do not need to be on the same server. repo is not meant to replace git, but it complements very well the layered nature of the Android or the Yocto Project, making it easier to work with them.
To install the repo utility, perform these steps:

  • Create a bin folder in the home directory (not required if the ~/bin folder already exists):
$ mkdir ~/bin
  • Download the repo utility, setup permissions:
$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
  • Add the following line to the .bashrc file to ensure that the ~/bin folder is in your PATH variable.
$ export PATH=~/bin:$PATH