Repo Sync a specific folder

I am trying to get the source code for android os. How to repo synchronize a specific folder with the main branch?

+4
source share
1 answer

Partial checks are not supported with Git.

You can try using git-subtree after cloning the entire repo sharing part of this repo into your own project repo.

However, if you are talking about one of the projects "in Android, this is Git repos, and can be controlled using the" repo "tool.
See also " Where can I view Android source code on the Internet? "

Install repo:

$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo $ chmod a+x ~/bin/repo $ mkdir working-directory-name $ cd working-directory-name $ repo init -u https://android.googlesource.com/platform/manifest 

Syncing your customer

To sync files for all available projects:

 $ repo sync 

To sync files for selected projects :

 $ repo sync project1 project2 ... 
+10
source

Source: https://habr.com/ru/post/1299292/


All Articles