Skip to content

Instantly share code, notes, and snippets.

@korniltsev
Last active August 18, 2022 04:57
Show Gist options
  • Save korniltsev/287b4dd079f599f371e5a937b63bdae3 to your computer and use it in GitHub Desktop.
Save korniltsev/287b4dd079f599f371e5a937b63bdae3 to your computer and use it in GitHub Desktop.
repo cheatsheet
# init
repo init -u https://android.googlesource.com/platform/manifest
# the same but depth=1 for faster clone
repo init --depth=1 -u https://android.googlesource.com/platform/manifest
# sync network in 4 threads and sync local in 16 threads
repo sync -n -j 4 && repo sync -l -j 16
# the same but sync only current branch -c
repo sync -c -n -j 4 && repo sync -c -l -j 16
# convert shalow clone to full
git fetch --unshallow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment