1# Checking out Metalava
2
3Metalava can be downloaded from the `metalava-master` manifest branch via `repo` as explained below
4
5## To check out `metalava-master` using `repo`:
61. Install `repo` (Repo is a tool that makes it easier to download multiple Git repositories at once. For more information about Repo, see the [Repo Command Reference](https://source.android.com/setup/develop/repo))
7
8```bash
9mkdir ~/bin
10PATH=~/bin:$PATH
11curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
12chmod a+x ~/bin/repo
13```
14
152. Configure Git with your real name and email address.
16
17```bash
18git config --global user.name "Your Name"
19git config --global user.email "you@example.com"
20```
21
223. Create a directory for your checkout (it can be any name)
23
24```bash
25mkdir metalava-master
26cd metalava-master
27```
28
294. Use `repo` command to initialize the repository.
30
31```bash
32repo init -u https://android.googlesource.com/platform/manifest -b metalava-master
33```
34
355. Now your repository is configured to pull only what you need for building and running Metalava. Download the code (this may take some time; the checkout is about 1.7G):
36
37```bash
38repo sync -j8 -c
39```
40## Checking out `aosp/master` instead:
41
42For anyone that is already working in the `aosp/master` branch, you can use that repo checkout instead. For small changes to metalava, this is not recommended - it is a very large checkout, with many dependencies not used by metalava.
43
44## Developing
45
46See also [README.md](README.md) for details about building and running Metalava after you have checked out the code.
47
48