SODP: Working Locally

To reset your Android source tree to the branches specified in your manifests, use repo sync --current-branch -l -j 8 --force-sync.
The -l means to not connect to the network.

To only fetch the newest references without modifying the checked-out tree, use -n instead of -l.

We also made a change to that enables you to work offline after having fetched the relevant commits once: Look for commits locally before fetching.

Published by

Edit source on Github