The repo sync code is often broken during download.
After it is disconnected, it re-sync, wasting a lot of time
You can use it directly under the project you want to download
Git fetch
This saves the synchronization time.
CD. repo/projects/prebuild
Then git fetch
Reference Article -------------------------------------------------------------------
Git obtains the android source code:
1.Git clone git: // android.git.kernel.org/
+ Project path.
2. mkdir mydroid
CD mydroid
Repo init-u git: // android.git.kernel.org/platform/manifest.git
Repo sync
When git clone gets a large source code, it is annoying that it cannot be resumed.
You can use git fetch to solve the problem:
Mkdir common
CD common
Git init
Git fetch http://android.git.kernel.org/common.git
After uploading,
Git branch-
Git checkout remotes /....
If the middle part is broken, you can directly go to the common directory and continue the GIT fetch operation.