https://github.com/maxpilotto/git-plow
Download a sub directory from a git repository
https://github.com/maxpilotto/git-plow
git sparse-checkout
Last synced: 6 months ago
JSON representation
Download a sub directory from a git repository
- Host: GitHub
- URL: https://github.com/maxpilotto/git-plow
- Owner: maxpilotto
- License: mit
- Created: 2024-05-30T07:13:50.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-31T19:14:30.000Z (over 1 year ago)
- Last Synced: 2025-02-21T08:09:43.933Z (over 1 year ago)
- Topics: git, sparse-checkout
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git-plow
This script lets you download a sub directory from a git repository without downloading the whole thing.
- [Requirements](#requirements)
- [Installing](#installing)
- [Basic Usage](#basic-usage)
- [Building](#building)
## Requirements
+ Git 2.25
+ Go 1.23.3+ (for building/installing)
## Installing
```
go install github.com/maxpilotto/git-plow
```
## Basic Usage
**Fetching a sub directory**
```bash
$ git-plow
```
E.g.
```bash
$ 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.
## Building
```
./build.sh
```