Last active
August 18, 2022 04:57
-
-
Save korniltsev/287b4dd079f599f371e5a937b63bdae3 to your computer and use it in GitHub Desktop.
repo cheatsheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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