repo is a python wrapper script for git, its Google Source page defines it as
repo – The Multiple Git Repository Tool
-
repo initcommand initializes repo in the current directory. That’s, it downloads the latest repo source and amanifest.xmlfile that describes the directory structure of the git repositories, and store all of these in.reposub-directory in the current directory. In your case, you have used an optional-bargument which is used to select the branch to checkout. By default (i.e., when-bargument is not used), master branch is used. -
repo syncupdates working tree to the latest revision. That’s, it synchronizes local project directories with the remote repositories specified in the manifest file. If a local
project does not yet exist, it will clone a new local directory from the remote repository and set up tracking branches as specified in the manifest. If the local project already exists, it will update the remote branches and rebase any new local changes on top of the new remote changes.-jargument is used to set number of parallel jobs to execute. The default value can be defined in the manifest, and also can be overridden in command line as in your case.
why did it reach 19G when Google said I should only be expecting around 8G of source files?
That should be because besides the source files, you will get all the history of Android since the beginning of the time 🙂
Hope this helps.