This script lets you download a sub directory from a git repository without downloading the whole thing.
- Git 2.25
- Go 1.23.3+ (for building/installing)
go install github.com/maxpilotto/git-plow
Fetching a sub directory
$ git-plow <repo_url> <subdir_path>
E.g.
$ git-plow https://github.com/googlesamples/mlkit android/vision-quickstart
This will copy the content of the folder vision-quickstart
in your working directory, without the need to download the entire repository.
You can also keep the original folder structure by using the -k
flag, that will create the directories mlkit/android/vision-quickstart
but only vision-quickstart
will contain files.
./build.sh